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,
  8. Duration? animationDuration,
})
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,
  Duration? animationDuration,
}) =>
    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,
      animationDuration: animationDuration ?? this.animationDuration,
    );