Line<T> class
Lines
The line generator produces a spline or polyline as in a line chart.
Lines also appear in many other visualization types, such as the links in hierarchical edge bundling. See also radial lines.
Constructors
Properties
- context ↔ Path?
-
Optional context for rendering the generated line (see Line.call) as a
sequence of
path method calls.
getter/setter pairinherited-setter
- curve ↔ CurveFactory
-
The
curve factory.
getter/setter pairinherited-setter
-
defined
↔ bool Function(T, int, List<
T> ) -
When a line is generated (see Line.call), the defined accessor will be
invoked for each element in the input data list, being passed the element
d
, the indexi
, and the listdata
as three arguments.getter/setter pairinherited-setter - digits ↔ num?
-
The maximum number of digits after the decimal separator.
getter/setter pairinherited-setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
x
↔ num Function(T, int, List<
T> ) -
When a line is generated (see Line.call), the x accessor will be
invoked for each defined element in the input data list, being passed
the element
d
, the indexi
, and the listdata
as three arguments.getter/setter pair -
y
↔ num Function(T, int, List<
T> ) -
When a line is generated (see Line.call), the y accessor will be
invoked for each defined element in the input data list, being passed
the element
d
, the indexi
, and the listdata
as three arguments.getter/setter pair
Methods
-
call(
List< T> data) → String? -
Generates a line for the given list of
data
. -
constDefined(
bool defined) → void - Defines the Line.defined-accessor as a constant function that always returns the specified value.
-
constX(
num x) → void - Defines the Line.x-accessor as a constant function that always returns the specified value.
-
constY(
num y) → void - Defines the Line.y-accessor as a constant function that always returns the specified value.
-
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