copyWith method

  1. @useResult
FLineCalendarStyle copyWith({
  1. EdgeInsetsGeometry? padding,
  2. double? contentEdgeSpacing,
  3. double? contentSpacing,
  4. FWidgetStateMap<BoxDecoration>? decoration,
  5. FWidgetStateMap<Color>? todayIndicatorColor,
  6. FWidgetStateMap<TextStyle>? dateTextStyle,
  7. FWidgetStateMap<TextStyle>? weekdayTextStyle,
  8. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
})

Returns a copy of this FLineCalendarStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FLineCalendarStyle copyWith({
  EdgeInsetsGeometry? padding,
  double? contentEdgeSpacing,
  double? contentSpacing,
  FWidgetStateMap<BoxDecoration>? decoration,
  FWidgetStateMap<Color>? todayIndicatorColor,
  FWidgetStateMap<TextStyle>? dateTextStyle,
  FWidgetStateMap<TextStyle>? weekdayTextStyle,
  FTappableStyle Function(FTappableStyle style)? tappableStyle,
}) => FLineCalendarStyle(
  padding: padding ?? this.padding,
  contentEdgeSpacing: contentEdgeSpacing ?? this.contentEdgeSpacing,
  contentSpacing: contentSpacing ?? this.contentSpacing,
  decoration: decoration ?? this.decoration,
  todayIndicatorColor: todayIndicatorColor ?? this.todayIndicatorColor,
  dateTextStyle: dateTextStyle ?? this.dateTextStyle,
  weekdayTextStyle: weekdayTextStyle ?? this.weekdayTextStyle,
  tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
);