JarString class

Inheritance

Constructors

JarString()

Properties

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

Methods

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

Operators

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