copyWith method
- @useResult
- EdgeInsetsGeometry? padding,
- double? contentEdgeSpacing,
- double? contentSpacing,
- FWidgetStateMap<
BoxDecoration> ? decoration, - FWidgetStateMap<
Color> ? todayIndicatorColor, - FWidgetStateMap<
TextStyle> ? dateTextStyle, - FWidgetStateMap<
TextStyle> ? weekdayTextStyle, - FTappableStyle tappableStyle()?,
Returns a copy of this FLineCalendarStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
padding
The horizontal padding around each calendar item. Defaults to EdgeInsets.symmetric(horizontal: 6.5)
.
contentEdgeSpacing
The vertical height between the content and the edges. Defaults to 15.5.
Contract
Throws AssertionError if negative.
contentSpacing
The vertical height between the date and weekday. Defaults to 2.
Contract
Throws AssertionError if negative.
decoration
The decoration.
@macro forui.foundation.doc_templates.WidgetStates.selectable}
todayIndicatorColor
The color of the today indicator.
@macro forui.foundation.doc_templates.WidgetStates.selectable}
dateTextStyle
The text style for the date.
@macro forui.foundation.doc_templates.WidgetStates.selectable}
weekdayTextStyle
The text style for the day of the week.
Supported states:
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)? 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,
);