AxisSpec<D>.from constructor

AxisSpec<D>.from(
  1. AxisSpec<D> other, {
  2. RenderSpec<D>? renderSpec,
  3. TickProviderSpec<D>? tickProviderSpec,
  4. TickFormatterSpec<D>? tickFormatterSpec,
  5. bool? showAxisLine,
  6. ScaleSpec<D>? scaleSpec,
})

Implementation

factory AxisSpec.from(
  AxisSpec<D> other, {
  RenderSpec<D>? renderSpec,
  TickProviderSpec<D>? tickProviderSpec,
  TickFormatterSpec<D>? tickFormatterSpec,
  bool? showAxisLine,
  ScaleSpec<D>? scaleSpec,
}) {
  return AxisSpec(
    renderSpec: renderSpec ?? other.renderSpec,
    tickProviderSpec: tickProviderSpec ?? other.tickProviderSpec,
    tickFormatterSpec: tickFormatterSpec ?? other.tickFormatterSpec,
    showAxisLine: showAxisLine ?? other.showAxisLine,
    scaleSpec: scaleSpec ?? other.scaleSpec,
  );
}