AllOf class
A schema that validates data against all of the provided OvO schemas.
Example:
final allOf = AllOf([
const Number().min(5),
const Number().max(10),
], 'The value must be a number between 5 and 10.');
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
The message that will be thrown when validation fails.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schemas
→ Iterable<
OvO> -
An iterable of OvO schemas that need to be validated.
final
Methods
-
contains(
Pattern value, {String? message}) → String -
endsWith(
String value, {String? message}) → String -
equals(
String value, {String? message}) → String -
finite(
{String? message}) → Number< T> -
gt(
T value, {String? message}) → Number< T> -
gte(
T value, {String? message}) → Number< T> -
handle(
Context context, dynamic data) → Future -
override
-
isFalse(
{String? message}) → Boolean -
Available on Boolean, provided by the BooleanOvO extension
-
isNotEmpty(
{String? message}) → String -
isTrue(
{String? message}) → Boolean -
Available on Boolean, provided by the BooleanOvO extension
-
length(
int length, {String? message}) → String -
lt(
T value, {String? message}) → Number< T> -
lte(
T value, {String? message}) → Number< T> -
max(
int length, {String? message}) → OvO< Iterable< T> > -
Available on OvO<
Iterable< , provided by the ArrayOvO extensionT> > -
max(
int length, {String? message}) → String -
min(
int length, {String? message}) → OvO< Iterable< T> > -
Available on OvO<
Iterable< , provided by the ArrayOvO extensionT> > -
min(
int length, {String? message}) → String -
negative(
{String? message}) → Number< T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
nullable(
) → OvO< T?> -
Available on OvO<
Returns an instance of OvO that wraps the current value with nullable type.T> , provided by the Nullable extension -
parse(
[Object? data]) → Future< T> -
refine(
FutureOr< bool> test(T data), {required String message}) → OvO<T> -
regex(
RegExp regex, {String? message}) → String -
size(
int length, {String? message}) → OvO< Iterable< T> > -
Available on OvO<
Iterable< , provided by the ArrayOvO extensionT> > -
startsWith(
Pattern value, {String? message}) → String -
toLowerCase(
) → String -
toString(
) → String -
A string representation of this object.
inherited
-
toUpperCase(
) → String -
transform<
R> (FutureOr< R> transform(Context context, dynamic data, Future<T> next(dynamic data))) → OvO<R> -
Available on OvO<
T> , provided by the OvOTransform extension -
trim(
) → String -
unique(
{String? message}) → OvO< Iterable< T> > -
Available on OvO<
Iterable< , provided by the ArrayOvO extensionT> > -
withDefault(
T defaultValue) → OvO< T> -
Available on OvO<
T> , provided by the WithDefault extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited