copyWith method

TimeScaleOption copyWith({
  1. double? scaleLineWidth,
  2. double? scaleLineHeight,
  3. Color? scaleTextColor,
  4. Color? scaleLineColor,
  5. ScaleAlignment? scaleAlignment,
  6. double? scaleTextSize,
  7. FontWeight? scaleTextWeight,
})

Implementation

TimeScaleOption copyWith({
  double? scaleLineWidth,
  double? scaleLineHeight,
  Color? scaleTextColor,
  Color? scaleLineColor,
  ScaleAlignment? scaleAlignment,
  double? scaleTextSize,
  FontWeight? scaleTextWeight,
}) {
  return TimeScaleOption(
    scaleLineWidth: scaleLineWidth ?? this.scaleLineWidth,
    scaleLineHeight: scaleLineHeight ?? this.scaleLineHeight,
    scaleTextColor: scaleTextColor ?? this.scaleTextColor,
    scaleLineColor: scaleLineColor ?? this.scaleLineColor,
    scaleAlignment: scaleAlignment ?? this.scaleAlignment,
    scaleTextSize: scaleTextSize ?? this.scaleTextSize,
    scaleTextWeight: scaleTextWeight ?? this.scaleTextWeight,
  );
}