copyWith method
- @useResult
- Brightness? keyboardAppearance,
- Color? cursorColor,
- Color? fillColor,
- bool? filled,
- EdgeInsetsGeometry? contentPadding,
- EdgeInsetsGeometry? clearButtonPadding,
- EdgeInsets? scrollPadding,
- FButtonStyle? clearButtonStyle,
- FWidgetStateMap<
TextStyle> ? contentTextStyle, - FWidgetStateMap<
TextStyle> ? hintTextStyle, - FWidgetStateMap<
TextStyle> ? counterTextStyle, - FWidgetStateMap<
InputBorder> ? border, - EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
inherited
Returns a copy of this FTextFieldStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
Implementation
@useResult
FTextFieldStyle copyWith({
Brightness? keyboardAppearance,
Color? cursorColor,
Color? fillColor,
bool? filled,
EdgeInsetsGeometry? contentPadding,
EdgeInsetsGeometry? clearButtonPadding,
EdgeInsets? scrollPadding,
FButtonStyle? clearButtonStyle,
FWidgetStateMap<TextStyle>? contentTextStyle,
FWidgetStateMap<TextStyle>? hintTextStyle,
FWidgetStateMap<TextStyle>? counterTextStyle,
FWidgetStateMap<InputBorder>? border,
EdgeInsetsGeometry? labelPadding,
EdgeInsetsGeometry? descriptionPadding,
EdgeInsetsGeometry? errorPadding,
EdgeInsetsGeometry? childPadding,
FWidgetStateMap<TextStyle>? labelTextStyle,
FWidgetStateMap<TextStyle>? descriptionTextStyle,
TextStyle? errorTextStyle,
}) => FTextFieldStyle(
keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
cursorColor: cursorColor ?? this.cursorColor,
fillColor: fillColor ?? this.fillColor,
filled: filled ?? this.filled,
contentPadding: contentPadding ?? this.contentPadding,
clearButtonPadding: clearButtonPadding ?? this.clearButtonPadding,
scrollPadding: scrollPadding ?? this.scrollPadding,
clearButtonStyle: clearButtonStyle ?? this.clearButtonStyle,
contentTextStyle: contentTextStyle ?? this.contentTextStyle,
hintTextStyle: hintTextStyle ?? this.hintTextStyle,
counterTextStyle: counterTextStyle ?? this.counterTextStyle,
border: border ?? this.border,
labelPadding: labelPadding ?? this.labelPadding,
descriptionPadding: descriptionPadding ?? this.descriptionPadding,
errorPadding: errorPadding ?? this.errorPadding,
childPadding: childPadding ?? this.childPadding,
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);