copyWith method
- @useResult
- FTextFieldStyle textFieldStyle(
- FTextFieldStyle style
- FPopoverStyle popoverStyle(
- FPopoverStyle style
- FPortalConstraints? popoverConstraints,
- FTimePickerStyle pickerStyle(
- FTimePickerStyle style
- IconThemeData? iconStyle,
Returns a copy of this FTimeFieldStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FTimeFieldStyle.textFieldStyle - The time field's text field style.
- FTimeFieldStyle.popoverStyle - The time field picker's popover style.
- FTimeFieldStyle.popoverConstraints - The time field picker's popover constraints.
- FTimeFieldStyle.pickerStyle - The time field's picker style.
- FTimeFieldStyle.iconStyle - The time field icon's style.
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,
);