copyWith method

HoursColumnStyle copyWith({
  1. TimeFormatter? timeFormatter,
  2. TextStyle? textStyle,
  3. double? width,
  4. Color? color,
  5. Decoration? decoration,
  6. Alignment? textAlignment,
  7. Duration? interval,
})

Allows to copy the current style instance with your own properties.

Implementation

HoursColumnStyle copyWith({
  TimeFormatter? timeFormatter,
  TextStyle? textStyle,
  double? width,
  Color? color,
  Decoration? decoration,
  Alignment? textAlignment,
  Duration? interval,
}) =>
    HoursColumnStyle(
      timeFormatter: timeFormatter ?? this.timeFormatter,
      textStyle: textStyle ?? this.textStyle,
      width: width ?? this.width,
      color: color ?? this.color,
      decoration: decoration ?? this.decoration,
      textAlignment: textAlignment ?? this.textAlignment,
      interval: interval ?? this.interval,
    );