copyWith method

  1. @useResult
FCalendarHeaderStyle copyWith({
  1. FFocusedOutlineStyleDelta? focusedOutlineStyle,
  2. FButtonStyleDelta? buttonStyle,
  3. TextStyleDelta? headerTextStyle,
  4. double? headerIconSize,
  5. Widget previousIcon(
    1. BuildContext, {
    2. String? semanticsLabel,
    })?,
  6. Widget toggleIcon(
    1. BuildContext, {
    2. String? semanticsLabel,
    })?,
  7. Widget nextIcon(
    1. BuildContext, {
    2. String? semanticsLabel,
    })?,
  8. Duration? animationDuration,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FCalendarHeaderStyle copyWith({
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
  FButtonStyleDelta? buttonStyle,
  TextStyleDelta? headerTextStyle,
  double? headerIconSize,
  Widget Function(BuildContext, {String? semanticsLabel})? previousIcon,
  Widget Function(BuildContext, {String? semanticsLabel})? toggleIcon,
  Widget Function(BuildContext, {String? semanticsLabel})? nextIcon,
  Duration? animationDuration,
}) => .new(
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
  buttonStyle: buttonStyle?.call(this.buttonStyle) ?? this.buttonStyle,
  headerTextStyle: headerTextStyle?.call(this.headerTextStyle) ?? this.headerTextStyle,
  headerIconSize: headerIconSize ?? this.headerIconSize,
  previousIcon: previousIcon ?? this.previousIcon,
  toggleIcon: toggleIcon ?? this.toggleIcon,
  nextIcon: nextIcon ?? this.nextIcon,
  animationDuration: animationDuration ?? this.animationDuration,
);