copyWith method
- @useResult
- FTextFieldStyleDelta? fieldStyle,
- FPopoverStyleDelta? popoverStyle,
- FCalendarStyleDelta? calendarStyle,
Returns a copy of this FDateFieldStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FDateFieldStyle.fieldStyle - The date field's textfield style.
- FDateFieldStyle.popoverStyle - The date field calendar's popover style.
- FDateFieldStyle.calendarStyle - The date field's calendar style.
Implementation
@useResult
FDateFieldStyle copyWith({
FTextFieldStyleDelta? fieldStyle,
FPopoverStyleDelta? popoverStyle,
FCalendarStyleDelta? calendarStyle,
}) => .new(
fieldStyle: fieldStyle?.call(this.fieldStyle) ?? this.fieldStyle,
popoverStyle: popoverStyle?.call(this.popoverStyle) ?? this.popoverStyle,
calendarStyle: calendarStyle?.call(this.calendarStyle) ?? this.calendarStyle,
);