copyWith method

  1. @useResult
FCalendarStyle copyWith({
  1. FCalendarHeaderStyleDelta? headerStyle,
  2. FCalendarDayPickerStyleDelta? dayPickerStyle,
  3. FCalendarEntryStyleDelta? yearMonthPickerStyle,
  4. DecorationDelta? decoration,
  5. EdgeInsetsGeometryDelta? padding,
  6. Duration? pageAnimationDuration,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FCalendarStyle copyWith({
  FCalendarHeaderStyleDelta? headerStyle,
  FCalendarDayPickerStyleDelta? dayPickerStyle,
  FCalendarEntryStyleDelta? yearMonthPickerStyle,
  DecorationDelta? decoration,
  EdgeInsetsGeometryDelta? padding,
  Duration? pageAnimationDuration,
}) => .new(
  headerStyle: headerStyle?.call(this.headerStyle) ?? this.headerStyle,
  dayPickerStyle: dayPickerStyle?.call(this.dayPickerStyle) ?? this.dayPickerStyle,
  yearMonthPickerStyle: yearMonthPickerStyle?.call(this.yearMonthPickerStyle) ?? this.yearMonthPickerStyle,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  padding: padding?.call(this.padding) ?? this.padding,
  pageAnimationDuration: pageAnimationDuration ?? this.pageAnimationDuration,
);