JarArray<T> class

Inheritance

Constructors

JarArray(JarSchema<T, JarSchema<T, dynamic>>? elementSchema)

Properties

asyncTests → List<Future<String?> Function(List<T>? value, JarTestContext context)>
finalinherited
elementSchema → JarSchema<T, JarSchema<T, dynamic>>?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
self → JarArray<T>
no setterinherited
tests → List<JarTest<List<T>>>
finalinherited
transformers → List<JarValueTransformer<List<T>>>
finalinherited
validators → List<JarCodedValidator<List<T>>>
finalinherited

Methods

addValidator(JarValidator<List<T>> validator, [String? code]) → JarArray<T>
inherited
catchValue(List<T> value) → JarArray<T>
inherited
compact() → JarArray<T>
custom(String? validator(List<T>? value, [Map<String, dynamic>? allValues]), [String? message]) → JarArray<T>
defaultTo(List<T> value) → JarArray<T>
inherited
describe() → Map<String, dynamic>
inherited
ensure() → JarArray<T>
equalTo(String field, [String? message]) → JarArray<T>
getAllValues() → Map<String, dynamic>?
inherited
getFieldValue(String fieldName) → List<T>?
inherited
label(String label) → JarArray<T>
inherited
length(int exactLength, [String? message]) → JarArray<T>
max(int length, [String? message]) → JarArray<T>
meta(Map<String, dynamic> meta) → JarArray<T>
inherited
min(int length, [String? message]) → JarArray<T>
nonempty([String? message]) → JarArray<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional() → JarArray<T>
required([String? message]) → JarArray<T>
test(JarTest<List<T>> test) → JarArray<T>
inherited
testAsync(Future<String?> test(List<T>? value, JarTestContext context)) → JarArray<T>
inherited
toString() → String
A string representation of this object.
inherited
transform(JarValueTransformer<List<T>> transformer) → JarArray<T>
inherited
unique([String? message]) → JarArray<T>
validate(dynamic value, [Map<String, dynamic>? allValues, String? path, Object? root]) → JarResult
override
validateAll(dynamic value, [Map<String, dynamic>? allValues, String? path, Object? root]) → JarResult
override
validateAsync(List<T>? value, [Map<String, dynamic>? allValues, String? path, Object? root]) → Future<JarResult>
inherited
when(String field, Map<dynamic, JarArray<T> Function(JarArray<T>)> conditions) → JarArray<T>
override
whenFields(List<String> fields, JarArray<T> builder(List values, JarArray<T> schema)) → JarArray<T>
inherited
whenFn(String field, JarArray<T> builder(dynamic value, JarArray<T> schema)) → JarArray<T>
inherited

Operators

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