copyWith method

TickConfig copyWith({
  1. double? tickLength,
  2. double? tickPadding,
  3. double? tickStrokeWidth,
  4. Color? tickColor,
})

Creates a copy with modified values.

Implementation

TickConfig copyWith({
  double? tickLength,
  double? tickPadding,
  double? tickStrokeWidth,
  Color? tickColor,
}) {
  return TickConfig(
    tickLength: tickLength ?? this.tickLength,
    tickPadding: tickPadding ?? this.tickPadding,
    tickStrokeWidth: tickStrokeWidth ?? this.tickStrokeWidth,
    tickColor: tickColor ?? this.tickColor,
  );
}