JarBoolean class

Inheritance

Constructors

JarBoolean()

Properties

asyncTests → List<Future<String?> Function(bool? 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 → JarBoolean
no setterinherited
tests → List<JarTest<bool>>
finalinherited
transformers → List<JarValueTransformer<bool>>
finalinherited
validators → List<JarCodedValidator<bool>>
finalinherited

Methods

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

Operators

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