copyWith method
- @useResult
- FTextFieldStyle textFieldStyle(
- FTextFieldStyle style
- FPopoverStyle popoverStyle(
- FPopoverStyle style
- FCalendarStyle calendarStyle(
- FCalendarStyle style
- IconThemeData? iconStyle,
Returns a copy of this FDateFieldStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FDateFieldStyle.textFieldStyle - The date field's textfield style.
- FDateFieldStyle.popoverStyle - The date field calendar's popover style.
- FDateFieldStyle.calendarStyle - The date field's calendar style.
- FDateFieldStyle.iconStyle - The date field icon's style.
Implementation
@useResult
FDateFieldStyle copyWith({
FTextFieldStyle Function(FTextFieldStyle style)? textFieldStyle,
FPopoverStyle Function(FPopoverStyle style)? popoverStyle,
FCalendarStyle Function(FCalendarStyle style)? 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,
);