NumericAxisSpec.from constructor

NumericAxisSpec.from(
  1. NumericAxisSpec other, {
  2. RenderSpec<num>? renderSpec,
  3. TickProviderSpec<num>? tickProviderSpec,
  4. TickFormatterSpec<num>? tickFormatterSpec,
  5. bool? showAxisLine,
  6. ScaleSpec<num>? scaleSpec,
  7. NumericExtents? viewport,
})

Implementation

factory NumericAxisSpec.from(
  NumericAxisSpec other, {
  RenderSpec<num>? renderSpec,
  TickProviderSpec<num>? tickProviderSpec,
  TickFormatterSpec<num>? tickFormatterSpec,
  bool? showAxisLine,
  ScaleSpec<num>? scaleSpec,
  NumericExtents? viewport,
}) {
  return NumericAxisSpec(
    renderSpec: renderSpec ?? other.renderSpec,
    tickProviderSpec: (tickProviderSpec ?? other.tickProviderSpec)
        as NumericTickProviderSpec?,
    tickFormatterSpec: (tickFormatterSpec ?? other.tickFormatterSpec)
        as NumericTickFormatterSpec?,
    showAxisLine: showAxisLine ?? other.showAxisLine,
    scaleSpec: scaleSpec ?? other.scaleSpec,
    viewport: viewport ?? other.viewport,
  );
}