AllowList<T> class

Allow list validator

Inheritance

Constructors

AllowList(List<T> _list, {bool strict = false})

Properties

hashCode → int
The hash code for this object.
no setterinherited
list → List<T>
List of allowed values
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDescription() → String
Error description
override
getType() → String
Type of list
override
isArray() → bool
Is array
override
isValid(dynamic value) → bool
Is valid Returns true if the given value is valid or false otherwise
override
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