copyWith method

  1. @useResult
FCalendarDayPickerStyle copyWith({
  1. TextStyle? headerTextStyle,
  2. FCalendarEntryStyle current(
    1. FCalendarEntryStyle style
    )?,
  3. FCalendarEntryStyle enclosing(
    1. FCalendarEntryStyle style
    )?,
  4. int? startDayOfWeek,
  5. double? tileSize,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FCalendarDayPickerStyle copyWith({
  TextStyle? headerTextStyle,
  FCalendarEntryStyle Function(FCalendarEntryStyle style)? current,
  FCalendarEntryStyle Function(FCalendarEntryStyle style)? enclosing,
  int? startDayOfWeek,
  double? tileSize,
}) => FCalendarDayPickerStyle(
  headerTextStyle: headerTextStyle ?? this.headerTextStyle,
  current: current != null ? current(this.current) : this.current,
  enclosing: enclosing != null ? enclosing(this.enclosing) : this.enclosing,
  startDayOfWeek: startDayOfWeek ?? this.startDayOfWeek,
  tileSize: tileSize ?? this.tileSize,
);