NumericAxisSpec.from constructor
NumericAxisSpec.from(
- NumericAxisSpec other, {
- RenderSpec<
num> ? renderSpec, - TickProviderSpec<
num> ? tickProviderSpec, - TickFormatterSpec<
num> ? tickFormatterSpec, - bool? showAxisLine,
- ScaleSpec<
num> ? scaleSpec, - NumericExtents? viewport,
Implementation
factory NumericAxisSpec.from(
NumericAxisSpec other, {
RenderSpec<num>? renderSpec,
TickProviderSpec<num>? tickProviderSpec,
TickFormatterSpec<num>? tickFormatterSpec,
bool? showAxisLine,
ScaleSpec<num>? scaleSpec,
NumericExtents? viewport,
}) =>
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,
);