x1 property
When an area is generated (see Area.call), the x1 accessor will be
invoked for each defined element in the input data list, being passed
the element d
, the index i
, and the list data
as three arguments.
TIP: This method is intended for vertically-oriented areas, as when time goes down↓ rather than right→; for the more common horizontally-oriented areas, use x instead.
final area = Area(…)..x1 = (d, i, data) => x(d["Close"]);
area.x1; // (d, i, data) => d["Close"]
The x1 accessor defaults to null, indicating that the previously-computed x0 value should be reused for the x1 value; this default is intended for horizontally-oriented areas.
Implementation
num Function(T, int, List<T>)? get x1 => _x1;