copyWith method
- @useResult
- FTextFieldStyle textFieldStyle()?,
- FPopoverStyle popoverStyle()?,
- FCalendarStyle calendarStyle()?,
- IconThemeData? iconStyle,
Returns a copy of this FDateFieldStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
textFieldStyle
The date field's textfield style.
popoverStyle
The date field calendar's popover style.
calendarStyle
The date field's calendar style.
iconStyle
The date field icon's style.
Implementation
@useResult
FDateFieldStyle copyWith({
FTextFieldStyle Function(FTextFieldStyle)? textFieldStyle,
FPopoverStyle Function(FPopoverStyle)? popoverStyle,
FCalendarStyle Function(FCalendarStyle)? calendarStyle,
IconThemeData? iconStyle,
}) => FDateFieldStyle(
textFieldStyle: textFieldStyle != null ? textFieldStyle(this.textFieldStyle) : this.textFieldStyle,
popoverStyle: popoverStyle != null ? popoverStyle(this.popoverStyle) : this.popoverStyle,
calendarStyle: calendarStyle != null ? calendarStyle(this.calendarStyle) : this.calendarStyle,
iconStyle: iconStyle ?? this.iconStyle,
);