BooleanSchema class

Inheritance

Constructors

BooleanSchema({bool isOptional = false, List<Validator<bool>> 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<bool>>
finalinherited

Methods

copyWith({bool? isOptional, List<Validator<bool>>? validators}) BooleanSchema
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional() SchemaValue<bool>
inherited
required() SchemaValue<bool>
inherited
toString() String
A string representation of this object.
inherited
tryParse(Object? value) bool?
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