Scale<N extends num> class
abstract
- Implementers
Constructors
- Scale(N minValue, N maxValue)
- Scale.fromJson(dynamic json)
-
Instantiates a Scale from
json
.factory
Properties
- format → String
-
The data format of this scale.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxValue → N
-
final
- minValue → N
-
final
- range ↔ N
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zero → N
-
The
zero
value for this scale format.no setter
Methods
-
denormalize(
N normalizedValue) → N -
Denormalize
normalizedValue
to values of this scale (in the range minValue to maxValue). -
denormalizeList(
List< N> normalizedValues) → List<N> -
Denormalizes
values
using denormalize. -
normalize(
N value) → N -
Normalize
value
to this scale (in the range0..1
) -
normalizeList(
List< N> values) → List<N> -
Normalizes
values
using normalize. -
normalizeNum(
num value) → N -
Normalize
value
to this scale (in the range0..1
) -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool withIndent = false}) → String - Converts to an encoded JSON.
-
toJsonMap(
) → Map< String, dynamic> - Converts this Scale to a JSON Map.
-
toN(
num value) → N -
Converts
value
toN
. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Returns
true
ifother
is equals tothis
.override