AxisRangeContext class
Everything a range policy may consult for the current frame.
The window fields are in domain x (what ChartPoint.x stores);
dataScalarRange and the return of extentIn are in scalar space.
- Annotations
Constructors
- AxisRangeContext({required ScalarRange? dataScalarRange, required AxisScale scale, required ChartVisibleRange? visibleX, required ScalarRange? extentIn(double minX, double maxX)})
-
const
Properties
- dataScalarRange → ScalarRange?
-
Scalar extent of all loaded data on this axis; null when nothing is
loaded.
final
- extentIn → ScalarRange? Function(double minX, double maxX)
-
Scalar extent of this axis over the given x domain window, unioned
across all series; null when no loaded point falls inside it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → AxisScale
-
final
- visibleX → ChartVisibleRange?
-
The x domain window currently on screen.
final
Methods
-
copyWith(
{ScalarRange? dataScalarRange}) → AxisRangeContext -
Lets a policy delegate to another with a substituted extent — see
VisibleAxisRange, which narrows
dataScalarRangeto the visible window and hands the result to AutoAxisRange. -
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