copyWith method

  1. @useResult
FCalendarStyle copyWith({
  1. FCalendarHeaderStyle headerStyle(
    1. FCalendarHeaderStyle style
    )?,
  2. FCalendarDayPickerStyle dayPickerStyle(
    1. FCalendarDayPickerStyle style
    )?,
  3. FCalendarEntryStyle yearMonthPickerStyle(
    1. FCalendarEntryStyle style
    )?,
  4. BoxDecoration? decoration,
  5. EdgeInsetsGeometry? padding,
  6. Duration? pageAnimationDuration,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FCalendarStyle copyWith({
  FCalendarHeaderStyle Function(FCalendarHeaderStyle style)? headerStyle,
  FCalendarDayPickerStyle Function(FCalendarDayPickerStyle style)? dayPickerStyle,
  FCalendarEntryStyle Function(FCalendarEntryStyle style)? yearMonthPickerStyle,
  BoxDecoration? decoration,
  EdgeInsetsGeometry? padding,
  Duration? pageAnimationDuration,
}) => FCalendarStyle(
  headerStyle: headerStyle != null ? headerStyle(this.headerStyle) : this.headerStyle,
  dayPickerStyle: dayPickerStyle != null ? dayPickerStyle(this.dayPickerStyle) : this.dayPickerStyle,
  yearMonthPickerStyle: yearMonthPickerStyle != null
      ? yearMonthPickerStyle(this.yearMonthPickerStyle)
      : this.yearMonthPickerStyle,
  decoration: decoration ?? this.decoration,
  padding: padding ?? this.padding,
  pageAnimationDuration: pageAnimationDuration ?? this.pageAnimationDuration,
);