PropertyConstraint<T> class
sealed
A single declared constraint on a property value.
The type parameter binds a constraint to the value domain it applies to (numbers, strings, lists...), which lets typed authoring surfaces reject inapplicable constraints at compile time.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The tagged JSON form, a single-key map (
{'range': {...}}). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → PropertyConstraint<Object?> - Decodes one tagged constraint, or an UnknownConstraint for tags this build does not know.