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

Constructors

Range(double? min, double? max)
const
Range.nonNegative()
Shorthand for the common Range(0, null).
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
max → double?
final
min → double?
final
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': {...}}).
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited