copyWith method
- @useResult
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FFormFieldStyle with the given properties replaced.
Consider using the CLI to generate a style.
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({
FWidgetStateMap<TextStyle>? labelTextStyle,
FWidgetStateMap<TextStyle>? descriptionTextStyle,
TextStyle? errorTextStyle,
}) => FFormFieldStyle(
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);