copyWith method
- @useResult
- FVariantsValueDelta<
FTappableVariantConstraint, FTappableVariant, Color, Delta> ? backgroundColor, - FVariantsValueDelta<
FTappableVariantConstraint, FTappableVariant, BorderSide?, Delta> ? borderSide, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? textStyle, - BorderRadius? borderRadius,
Returns a copy of this FCalendarEntryStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCalendarEntryStyle.backgroundColor - The day's background color.
- FCalendarEntryStyle.borderSide - The border side.
- FCalendarEntryStyle.textStyle - The day's text style.
- FCalendarEntryStyle.borderRadius - The entry border's radius.
Implementation
@useResult
FCalendarEntryStyle copyWith({
FVariantsValueDelta<FTappableVariantConstraint, FTappableVariant, Color, Delta>? backgroundColor,
FVariantsValueDelta<FTappableVariantConstraint, FTappableVariant, BorderSide?, Delta>? borderSide,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? textStyle,
BorderRadius? borderRadius,
}) => .new(
backgroundColor: backgroundColor?.call(this.backgroundColor) ?? this.backgroundColor,
borderSide: borderSide?.call(this.borderSide) ?? this.borderSide,
textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
borderRadius: borderRadius ?? this.borderRadius,
);