copyWith method

  1. @useResult
FDateFieldStyle copyWith({
  1. FTextFieldStyle textFieldStyle(
    1. FTextFieldStyle
    )?,
  2. FPopoverStyle popoverStyle(
    1. FPopoverStyle
    )?,
  3. FCalendarStyle calendarStyle(
    1. FCalendarStyle
    )?,
  4. 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,
);