copyWith method

  1. @useResult
FFormFieldStyle copyWith({
  1. FWidgetStateMap<TextStyle>? labelTextStyle,
  2. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  3. TextStyle? errorTextStyle,
})
inherited

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

@useResult
FFormFieldStyle copyWith({
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FFormFieldStyle(
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);