JarDate class

Inheritance

Constructors

JarDate()

Properties

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

Methods

addValidator(JarValidator<DateTime> validator, [String? code]) → JarDate
inherited
catchValue(DateTime value) → JarDate
inherited
coerce() → JarDate
custom(String? validator(DateTime? value, [Map<String, dynamic>? allValues]), [String? message]) → JarDate
defaultTo(DateTime value) → JarDate
inherited
describe() → Map<String, dynamic>
inherited
equalTo(String field, [String? message]) → JarDate
future([String? message]) → JarDate
getAllValues() → Map<String, dynamic>?
inherited
getFieldValue(String fieldName) → DateTime?
inherited
label(String label) → JarDate
inherited
max(DateTime max, [String? message]) → JarDate
meta(Map<String, dynamic> meta) → JarDate
inherited
min(DateTime min, [String? message]) → JarDate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional() → JarDate
past([String? message]) → JarDate
required([String? message]) → JarDate
test(JarTest<DateTime> test) → JarDate
inherited
testAsync(Future<String?> test(DateTime? value, JarTestContext context)) → JarDate
inherited
toString() → String
A string representation of this object.
inherited
transform(JarValueTransformer<DateTime> transformer) → JarDate
inherited
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(DateTime? value, [Map<String, dynamic>? allValues, String? path, Object? root]) → Future<JarResult>
inherited
when(String field, Map<dynamic, JarDate Function(JarDate)> conditions) → JarDate
override
whenFields(List<String> fields, JarDate builder(List values, JarDate schema)) → JarDate
inherited
whenFn(String field, JarDate builder(dynamic value, JarDate schema)) → JarDate
inherited

Operators

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