Constraint class abstract
A constraint that can be used with the where clauses
Constructors
- Constraint({required String key, required dynamic value})
- Constructs a constraint which restricts what
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The key on which the constraint should be applied on
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → dynamic
-
the value that is used when evaluating the constraint
final
Methods
-
evaluate(
JSON payload) → bool - Check if the payload satisfies the Constraint
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited