Range class final
A hard inclusive clamp on a numeric value; a null bound is open. Inspector, clamped field. Coercion and realize clamp into range.
- Inheritance
-
- Object
- PropertyConstraint<
num> - Range
Constructors
- Range(double? min, double? max)
-
const
- Range.nonNegative()
-
Shorthand for the common
Range(0, null).const
Properties
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': {...}}).override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited