copyWith method

  1. @useResult
FCalendarDayPickerStyle copyWith({
  1. TextStyleDelta? headerTextStyle,
  2. FCalendarEntryStyleDelta? current,
  3. FCalendarEntryStyleDelta? enclosing,
  4. int? startDayOfWeek = -1,
  5. double? tileSize,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FCalendarDayPickerStyle copyWith({
  TextStyleDelta? headerTextStyle,
  FCalendarEntryStyleDelta? current,
  FCalendarEntryStyleDelta? enclosing,
  int? startDayOfWeek = -1,
  double? tileSize,
}) => .new(
  headerTextStyle: headerTextStyle?.call(this.headerTextStyle) ?? this.headerTextStyle,
  current: current?.call(this.current) ?? this.current,
  enclosing: enclosing?.call(this.enclosing) ?? this.enclosing,
  startDayOfWeek: startDayOfWeek == -1 ? this.startDayOfWeek : startDayOfWeek,
  tileSize: tileSize ?? this.tileSize,
);