copyWith method

  1. @override
  2. @useResult
FFormFieldErrorStyle copyWith({
  1. TextStyle? labelTextStyle,
  2. TextStyle? descriptionTextStyle,
  3. TextStyle? errorTextStyle,
})
override

Returns a copy of this FFormFieldErrorStyle with the given properties replaced.

Implementation

@override
@useResult
FFormFieldErrorStyle copyWith({
  TextStyle? labelTextStyle,
  TextStyle? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) =>
    FFormFieldErrorStyle(
      labelTextStyle: labelTextStyle ?? this.labelTextStyle,
      descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
      errorTextStyle: errorTextStyle ?? this.errorTextStyle,
    );