Variable<D, V> class

The specification of a variable.

Instead of raw Chart.data, the chart reorgnize datum to "original value tuple" (See details in Tuple) for internal usage. The variable defines how to create a field in original value tuple form input datum, and the scale specification of the field.

The generic D is the type of datum in Chart.data list, and V is the type of field value. V can only be String, num or DateTime.

See also:

  • Tuple, the original value tuple.

Constructors

Variable({required Accessor<D, V> accessor, Scale<V, num>? scale})
Creates a variable specification.

Properties

accessor ↔ Accessor<D, V>
Indicates how to get the variable value from a datum.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale Scale<V, num>?
Scale specification of this variable.
getter/setter pair

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.
override