copyWith method
- @useResult
- Brightness? keyboardAppearance,
- Color? cursorColor,
- EdgeInsets? contentPadding,
- EdgeInsets? scrollPadding,
- FLabelLayoutStyle? labelLayoutStyle,
- FTextFieldStateStyle? enabledStyle,
- FTextFieldStateStyle? disabledStyle,
- FTextFieldErrorStyle? errorStyle,
Returns a copy of this FTextFieldStyle with the given properties replaced.
Implementation
@useResult
FTextFieldStyle copyWith({
Brightness? keyboardAppearance,
Color? cursorColor,
EdgeInsets? contentPadding,
EdgeInsets? scrollPadding,
FLabelLayoutStyle? labelLayoutStyle,
FTextFieldStateStyle? enabledStyle,
FTextFieldStateStyle? disabledStyle,
FTextFieldErrorStyle? errorStyle,
}) =>
FTextFieldStyle(
keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
cursorColor: cursorColor ?? this.cursorColor,
contentPadding: contentPadding ?? this.contentPadding,
scrollPadding: scrollPadding ?? this.scrollPadding,
labelLayoutStyle: labelLayoutStyle ?? this.labelLayoutStyle,
enabledStyle: enabledStyle ?? this.enabledStyle,
disabledStyle: disabledStyle ?? this.disabledStyle,
errorStyle: errorStyle ?? this.errorStyle,
);