Range class

Inheritance
Implementers

Constructors

Range({num? min, num? max, bool inclusive = true})
Validator that checks if a num value falls within a specified range. Either min, max, or both must be provided.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
inclusive → bool
Whether the range is inclusive (default: true).
final
max → num?
(optional) The maximum value to check against.
final
min → num?
(optional) The minimum value to check against.
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
toString() → String
A string representation of this object.
inherited
validate(Object? value) → ValidationException?
Return null if valid, otherwise a ValidationException.
override

Operators

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