DependentRequired class
Validates that, if a map has a specified key then it also has a set of dependent keys.
For example:
if properties is
{
'x': ['a'],
'y': ['b', 'c'],
}
Then if input has x and y then it must also have keys a, b, and c.
... or if input only has x then it must also have keys a.
... or if input only has y then it must also have keys b and c.
Constructors
-
DependentRequired(Map<
String, List< properties)String> >
Properties
Methods
-
call(
Map input) → bool -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override