ListType<T> class
Type specification for List types
- Inheritance
-
- Object
- AbstractType<
T, ListType< T> > - ListType
Constructors
-
ListType({Type? type, required AbstractType<
dynamic, AbstractType> elementType}) -
Create a new ListType
typethe element type
Properties
-
elementType
↔ AbstractType<
dynamic, AbstractType> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- nullable ↔ bool
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tests
↔ List<
Test> -
getter/setter pairinherited
- type ↔ Type
-
getter/setter pairinherited
Methods
-
baseType<
V> (Type type) → void -
inherited
-
check(
dynamic object, ValidationContext context) → void -
inherited
-
code(
) → String -
inherited
-
constraint(
String input) → ListType< T> -
override
-
getTest(
String name) → Test -
inherited
-
hasTest(
String name) → bool -
inherited
-
isValid(
dynamic object) → bool -
return
true, if the specified object is valid, elsefalseobjectthe to be validated object.inherited -
max(
int length) → ListType< T> - requires that the list should have a maximum length
-
min(
int length) → ListType< T> - requires that the list should have a minimum length
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
optional(
) → ListType< T> -
inherited
-
parse(
Map< String, MethodSpec> methods, String expression) → ListType<T> -
inherited
-
required(
) → ListType< T> -
inherited
-
test<
S> ({required Type type, required String name, required Check< S> check, dynamic params = const <String, dynamic>{}, dynamic stop = false, String? message}) → ListType<T> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
dynamic object) → void -
validate the passed object. In case of a type violation, a ValidationException will be thrown
objectthe to be validated object.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
methods
→ Map<
String, MethodSpec> -
final