copyWith method
- @useResult
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FLabelStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FLabelStyle.labelPadding - The label's padding.
- FLabelStyle.descriptionPadding - The description's padding.
- FLabelStyle.errorPadding - The error's padding.
- FLabelStyle.childPadding - The child's padding.
- FLabelStyle.labelTextStyle - The label's text style.
- FLabelStyle.descriptionTextStyle - The description's text style.
- FLabelStyle.errorTextStyle - The error's text style.
Implementation
@useResult
FLabelStyle copyWith({
EdgeInsetsGeometry? labelPadding,
EdgeInsetsGeometry? descriptionPadding,
EdgeInsetsGeometry? errorPadding,
EdgeInsetsGeometry? childPadding,
FWidgetStateMap<TextStyle>? labelTextStyle,
FWidgetStateMap<TextStyle>? descriptionTextStyle,
TextStyle? errorTextStyle,
}) => FLabelStyle(
labelPadding: labelPadding ?? this.labelPadding,
descriptionPadding: descriptionPadding ?? this.descriptionPadding,
errorPadding: errorPadding ?? this.errorPadding,
childPadding: childPadding ?? this.childPadding,
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);