copyWith method

DayBarStyle copyWith({
  1. DateFormatter? dateFormatter,
  2. TextStyle? textStyle,
  3. Color? color,
  4. Decoration? decoration,
  5. Alignment? textAlignment,
})

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

Implementation

DayBarStyle copyWith({
  DateFormatter? dateFormatter,
  TextStyle? textStyle,
  Color? color,
  Decoration? decoration,
  Alignment? textAlignment,
}) =>
    DayBarStyle(
      dateFormatter: dateFormatter ?? this.dateFormatter,
      textStyle: textStyle ?? this.textStyle,
      color: color ?? this.color,
      decoration: decoration ?? this.decoration,
      textAlignment: textAlignment ?? this.textAlignment,
    );