copyWith method
- @useResult
- FTextFieldStyle textFieldStyle()?,
- FPopoverStyle popoverStyle()?,
- FPortalConstraints? popoverConstraints,
- FTimePickerStyle pickerStyle()?,
- 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,
);