ChartAnchor class abstract
Where one coordinate of a positioned child comes from.
Mix kinds freely per dimension — for example x: .start with
y: .value(42) pins a widget to the left edge of the plot at a data
height. Subclass to add your own kind.
Constructors
- ChartAnchor()
-
Const constructor for subclasses.
const
- ChartAnchor.fraction(double fraction)
-
A fraction of the plot:
0is its left/top edge,1its right/bottom.constfactory - ChartAnchor.fromEnd(double pixels)
-
Logical pixels from the right/bottom edge of the plot.
constfactory
- ChartAnchor.pixels(double pixels)
-
Logical pixels from the left/top edge of the plot.
constfactory
- ChartAnchor.value(double value)
-
A data value on the dimension's scale.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
ChartScaleView scale) → double? -
The plot-local pixel coordinate along
scale, or null to hide the child. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- center → const ChartAnchor
- The middle of the plot.
- end → const ChartAnchor
- The right/bottom edge of the plot.
- start → const ChartAnchor
- The left/top edge of the plot.