TypeValidators class

Constructors

TypeValidators()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

boolean(String key, dynamic value) bool
jsonSchemaVersion4Or6(String key, dynamic value) SchemaVersion
list(String key, dynamic value) List
nonEmptyList(String key, dynamic value) List
nonEmptyString(String key, dynamic value) String
nonNegative(String key, dynamic value) → dynamic
nonNegativeInt(String key, dynamic value) int
nonNegativeNum(String key, dynamic value) num
number(String key, dynamic value) num
object(String? key, dynamic value) Map
string(String key, dynamic value) String
Validate a dynamic value is a String.
typeList(String key, dynamic value) List<SchemaType?>
uniqueList(String key, dynamic value) List
uri(String key, dynamic value) Uri