DesignScale class abstract

Values to positions and back.

const DesignLinearScale(min: 0, max: 100, start: 0, end: 300).map(50)

Constructors

DesignScale({required double start, required double end})
A scale over the positions start to end.
const

Properties

end → double
The position of the greatest value.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → double
The position of the least value (left, or right when the scale runs right to left; the bottom of a y scale).
final

Methods

invert(double position) → double
The value at position.
map(double value) → double
The position of value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ticks(DesignLocalizations localizations, {int count = 5}) → List<DesignScaleTick>
About count ticks across the scale, labelled for localizations.
toString() → String
A string representation of this object.
inherited

Operators

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