NullSchema class

Used to remove value from SchemaMap

Inheritance

Constructors

NullSchema({bool optional = false, List<Validator<Null>> 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<Null>>
finalinherited

Methods

copyWith({bool? optional, List<Validator<Null>>? validators}) → NullSchema
override
isOptional() → SchemaValue<Null>
inherited
isRequired() → SchemaValue<Null>
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) → Null
override
validate(List<String> path, Object? value) → SchemaValidationResult
inherited
validateOrThrow(Object value) → void
inherited

Operators

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