copyWith method

AxisRangeContext copyWith({
  1. ScalarRange? dataScalarRange,
})

Lets a policy delegate to another with a substituted extent — see VisibleAxisRange, which narrows dataScalarRange to the visible window and hands the result to AutoAxisRange.

Implementation

AxisRangeContext copyWith({ScalarRange? dataScalarRange}) {
  return AxisRangeContext(
    dataScalarRange: dataScalarRange ?? this.dataScalarRange,
    scale: scale,
    visibleX: visibleX,
    extentIn: extentIn,
  );
}