ScaleIntervals class
Represents a range or interval of values on the ruler.
The ScaleIntervals class defines a range of values (from begin to end) on the ruler, with an optional scale that can be applied to adjust the interval's size or behavior. It is typically used to represent specific measurement intervals, such as ranges for weights (kg, pounds) or lengths (feet, cm).
The scale can be used to modify how the interval is displayed or mapped to the ruler's physical space, making it more flexible in handling different measurement units and their corresponding ranges.
Constructors
- ScaleIntervals({required int begin, required int end, double scale = 1})
-
Creates a ScaleIntervals with the specified
begin
,end
, and optionalscale
.const
Properties
- begin → int
-
The beginning value of the interval (inclusive).
final
- end → int
-
The ending value of the interval (exclusive).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
The scale factor for the interval, used to adjust the interval's size or behavior.
The default value is 1.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited