copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FLineCalendarStyle copyWith({
  double? itemSpacing,
  double? contentEdgeSpacing,
  double? contentSpacing,
  FVariantsDelta<FLineCalendarItemVariantConstraint, FLineCalendarItemVariant, Decoration, DecorationDelta>?
  decoration,
  FVariantsValueDelta<FLineCalendarItemVariantConstraint, FLineCalendarItemVariant, Color, Delta>?
  todayIndicatorColor,
  FVariantsDelta<FLineCalendarItemVariantConstraint, FLineCalendarItemVariant, TextStyle, TextStyleDelta>?
  dateTextStyle,
  FVariantsDelta<FLineCalendarItemVariantConstraint, FLineCalendarItemVariant, TextStyle, TextStyleDelta>?
  weekdayTextStyle,
  FTappableStyleDelta? tappableStyle,
}) => .new(
  itemSpacing: itemSpacing ?? this.itemSpacing,
  contentEdgeSpacing: contentEdgeSpacing ?? this.contentEdgeSpacing,
  contentSpacing: contentSpacing ?? this.contentSpacing,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  todayIndicatorColor: todayIndicatorColor?.call(this.todayIndicatorColor) ?? this.todayIndicatorColor,
  dateTextStyle: dateTextStyle?.call(this.dateTextStyle) ?? this.dateTextStyle,
  weekdayTextStyle: weekdayTextStyle?.call(this.weekdayTextStyle) ?? this.weekdayTextStyle,
  tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
);