copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FFormFieldStyle copyWith({
  FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? labelTextStyle,
  FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? descriptionTextStyle,
  FVariantsDelta<FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta>? errorTextStyle,
}) => .new(
  labelTextStyle: labelTextStyle?.call(this.labelTextStyle) ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle?.call(this.descriptionTextStyle) ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle?.call(this.errorTextStyle) ?? this.errorTextStyle,
);