copyWith method

  1. @useResult
FTimeFieldStyle copyWith({
  1. FTextFieldStyleDelta? fieldStyle,
  2. FPopoverStyleDelta? popoverStyle,
  3. FTimePickerStyleDelta? pickerStyle,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FTimeFieldStyle copyWith({
  FTextFieldStyleDelta? fieldStyle,
  FPopoverStyleDelta? popoverStyle,
  FTimePickerStyleDelta? pickerStyle,
}) => .new(
  fieldStyle: fieldStyle?.call(this.fieldStyle) ?? this.fieldStyle,
  popoverStyle: popoverStyle?.call(this.popoverStyle) ?? this.popoverStyle,
  pickerStyle: pickerStyle?.call(this.pickerStyle) ?? this.pickerStyle,
);