ScaleEntry class

A scale entry is a range within a scale.

Normally used in a Scale object. The scale entry is defined by the value field as one bound of the range. position defines if value is the lower or upper bound of the range.

Implemented types
Annotations

Constructors

ScaleEntry({double? value, String? text, String? position})
ScaleEntry.fromJson(Map<String, dynamic> json)
Creates a ScaleEntry from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
position String?
Defines if value is the lower or upper bound of the range Is expected to be 'start' or 'end'.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
Text describing the range.
getter/setter pair
value double?
One bound of the range of the scale entry.
getter/setter pair

Methods

compareTo(ScaleEntry other) int
Compares two ScaleEntry objects by value, position and text. The order is value, position and text. If the value is equal, the position is compared, null is considered smaller than non null values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

listFromJson(List json) List<ScaleEntry>
Creates a list of ScaleEntry from a JSON list.