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.

Implemented types

Constructors

DependentRequired(Map<String, List<String>> properties)

Properties

hashCode int
The hash code for this object.
no setteroverride
name String
final
properties Map<String, List<String>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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