copyWith method
- @useResult
- EdgeInsetsGeometry? padding,
- double? contentEdgeSpacing,
- double? contentSpacing,
- FWidgetStateMap<
BoxDecoration> ? decoration, - FWidgetStateMap<
Color> ? todayIndicatorColor, - FWidgetStateMap<
TextStyle> ? dateTextStyle, - FWidgetStateMap<
TextStyle> ? weekdayTextStyle, - FTappableStyle tappableStyle(
- FTappableStyle style
Returns a copy of this FLineCalendarStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FLineCalendarStyle.padding - The horizontal padding around each calendar item.
- FLineCalendarStyle.contentEdgeSpacing - The vertical height between the content and the edges.
- FLineCalendarStyle.contentSpacing - The vertical height between the date and weekday.
- FLineCalendarStyle.decoration - The decoration.
- FLineCalendarStyle.todayIndicatorColor - The color of the today indicator.
- FLineCalendarStyle.dateTextStyle - The text style for the date.
- FLineCalendarStyle.weekdayTextStyle - The text style for the day of the week.
- FLineCalendarStyle.tappableStyle - The tappable style.
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,
);