copyWith method

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

Returns a copy of this FTimeFieldStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FTimeFieldStyle copyWith({
  FTextFieldStyle Function(FTextFieldStyle style)? textFieldStyle,
  FPopoverStyle Function(FPopoverStyle style)? popoverStyle,
  FPortalConstraints? popoverConstraints,
  FTimePickerStyle Function(FTimePickerStyle style)? 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,
);