copyWith method
- @useResult
- EdgeInsetsGeometryDelta? padding,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, Decoration, DecorationDelta> ? headerDecoration, - EdgeInsetsGeometryDelta? tappablePadding,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? headerTextStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? toggleIconStyle, - FFocusedOutlineStyleDelta? headerFocusedOutlineStyle,
- FButtonStyleDelta? buttonStyle,
- Widget toggleIcon(
- BuildContext, {
- String? semanticsLabel,
- Widget previousIcon(
- BuildContext, {
- String? semanticsLabel,
- Widget nextIcon(
- BuildContext, {
- String? semanticsLabel,
- Duration? animationDuration,
Returns a copy of this FCalendarHeaderStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCalendarHeaderStyle.padding - The padding around the entire header.
- FCalendarHeaderStyle.headerDecoration - The month and year tap targets' decoration.
- FCalendarHeaderStyle.tappablePadding - The month and year tap targets' padding.
- FCalendarHeaderStyle.headerTextStyle - The month and year labels' text style.
- FCalendarHeaderStyle.toggleIconStyle - The month and year toggle icons' style.
- FCalendarHeaderStyle.headerFocusedOutlineStyle - The focused outline style for the header tappable.
- FCalendarHeaderStyle.buttonStyle - The navigation buttons' style.
- FCalendarHeaderStyle.toggleIcon - The toggle icon builder.
- FCalendarHeaderStyle.previousIcon - The previous-month icon builder.
- FCalendarHeaderStyle.nextIcon - The next-month icon builder.
- FCalendarHeaderStyle.animationDuration - The arrow turn animation's duration.
Implementation
@useResult
FCalendarHeaderStyle copyWith({
EdgeInsetsGeometryDelta? padding,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, Decoration, DecorationDelta>? headerDecoration,
EdgeInsetsGeometryDelta? tappablePadding,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? headerTextStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? toggleIconStyle,
FFocusedOutlineStyleDelta? headerFocusedOutlineStyle,
FButtonStyleDelta? buttonStyle,
Widget Function(BuildContext, {String? semanticsLabel})? toggleIcon,
Widget Function(BuildContext, {String? semanticsLabel})? previousIcon,
Widget Function(BuildContext, {String? semanticsLabel})? nextIcon,
Duration? animationDuration,
}) => .new(
padding: padding?.call(this.padding) ?? this.padding,
headerDecoration: headerDecoration?.call(this.headerDecoration) ?? this.headerDecoration,
tappablePadding: tappablePadding?.call(this.tappablePadding) ?? this.tappablePadding,
headerTextStyle: headerTextStyle?.call(this.headerTextStyle) ?? this.headerTextStyle,
toggleIconStyle: toggleIconStyle?.call(this.toggleIconStyle) ?? this.toggleIconStyle,
headerFocusedOutlineStyle:
headerFocusedOutlineStyle?.call(this.headerFocusedOutlineStyle) ?? this.headerFocusedOutlineStyle,
buttonStyle: buttonStyle?.call(this.buttonStyle) ?? this.buttonStyle,
toggleIcon: toggleIcon ?? this.toggleIcon,
previousIcon: previousIcon ?? this.previousIcon,
nextIcon: nextIcon ?? this.nextIcon,
animationDuration: animationDuration ?? this.animationDuration,
);