copyWith method

  1. @override
  2. @useResult
FTextFieldErrorStyle copyWith({
  1. TextStyle? errorTextStyle,
  2. TextStyle? labelTextStyle,
  3. TextStyle? contentTextStyle,
  4. TextStyle? hintTextStyle,
  5. TextStyle? descriptionTextStyle,
  6. FTextFieldBorderStyle? focusedStyle,
  7. 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,
    );