IntegerSchema class

Inheritance

Constructors

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

Properties

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

Methods

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

Operators

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