IntegerSchema class

Inheritance

Constructors

IntegerSchema({bool isOptional = false, List<Validator<int>> validators = const []})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isOptional bool
finalinherited
isRequired bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validators List<Validator<int>>
finalinherited

Methods

copyWith({bool? isOptional, List<Validator<int>>? validators}) IntegerSchema
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional() SchemaValue<int>
inherited
required() SchemaValue<int>
inherited
toString() String
A string representation of this object.
inherited
tryParse(Object value) int?
override
validate(List<String> path, Object? value) SchemaValidationResult
inherited
validateOrThrow(String key, Object value) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited