copyWith method

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

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

Implementation

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