copyWith method
- @override
- @useResult
- TextStyle? errorTextStyle,
- TextStyle? labelTextStyle,
- TextStyle? contentTextStyle,
- TextStyle? hintTextStyle,
- TextStyle? descriptionTextStyle,
- FTextFieldBorderStyle? focusedStyle,
- FTextFieldBorderStyle? unfocusedStyle,
override
Returns a copy of this FTextFieldStateStyle with the given properties replaced.
Implementation
@override
@useResult
FTextFieldErrorStyle copyWith({
TextStyle? errorTextStyle,
TextStyle? labelTextStyle,
TextStyle? contentTextStyle,
TextStyle? hintTextStyle,
TextStyle? descriptionTextStyle,
FTextFieldBorderStyle? focusedStyle,
FTextFieldBorderStyle? unfocusedStyle,
}) =>
FTextFieldErrorStyle(
errorTextStyle: errorTextStyle ?? this.errorTextStyle,
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
contentTextStyle: contentTextStyle ?? this.contentTextStyle,
hintTextStyle: hintTextStyle ?? this.hintTextStyle,
descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
focusedStyle: focusedStyle ?? this.focusedStyle,
unfocusedStyle: unfocusedStyle ?? this.unfocusedStyle,
);