copyWith method

  1. @useResult
FTimeFieldStyle copyWith({
  1. FTextFieldStyle textFieldStyle(
    1. FTextFieldStyle
    )?,
  2. FPopoverStyle popoverStyle(
    1. FPopoverStyle
    )?,
  3. FPortalConstraints? popoverConstraints,
  4. FTimePickerStyle pickerStyle(
    1. FTimePickerStyle
    )?,
  5. IconThemeData? iconStyle,
})

Returns a copy of this FTimeFieldStyle 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 time field's text field style.

popoverStyle

The time field picker's popover style.

popoverConstraints

The time field picker's popover constraints.

pickerStyle

The time field's picker style.

iconStyle

The time field icon's style.

Implementation

@useResult
FTimeFieldStyle copyWith({
  FTextFieldStyle Function(FTextFieldStyle)? textFieldStyle,
  FPopoverStyle Function(FPopoverStyle)? popoverStyle,
  FPortalConstraints? popoverConstraints,
  FTimePickerStyle Function(FTimePickerStyle)? pickerStyle,
  IconThemeData? iconStyle,
}) => FTimeFieldStyle(
  textFieldStyle: textFieldStyle != null ? textFieldStyle(this.textFieldStyle) : this.textFieldStyle,
  popoverStyle: popoverStyle != null ? popoverStyle(this.popoverStyle) : this.popoverStyle,
  popoverConstraints: popoverConstraints ?? this.popoverConstraints,
  pickerStyle: pickerStyle != null ? pickerStyle(this.pickerStyle) : this.pickerStyle,
  iconStyle: iconStyle ?? this.iconStyle,
);