copyWith method
- @useResult
- FVariantsDelta<
FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta> ? labelTextStyle, - FVariantsDelta<
FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta> ? descriptionTextStyle, - FVariantsDelta<
FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta> ? errorTextStyle,
Returns a copy of this FFormFieldStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FFormFieldStyle.labelTextStyle - The label's text style.
- FFormFieldStyle.descriptionTextStyle - The description's text style.
- FFormFieldStyle.errorTextStyle - The error's text style.
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,
);