copyWith method
- @useResult
- FFormFieldStyle? enabledFormFieldStyle,
- FFormFieldStyle? disabledFormFieldStyle,
- FFormFieldErrorStyle? errorFormFieldStyle,
- FIconStyle? iconStyle,
- BorderRadius? borderRadius,
- double? borderWidth,
- EdgeInsets? pagePadding,
Returns a copy of this FStyle with the given properties replaced.
Implementation
@useResult
FStyle copyWith({
FFormFieldStyle? enabledFormFieldStyle,
FFormFieldStyle? disabledFormFieldStyle,
FFormFieldErrorStyle? errorFormFieldStyle,
FIconStyle? iconStyle,
BorderRadius? borderRadius,
double? borderWidth,
EdgeInsets? pagePadding,
}) =>
FStyle(
enabledFormFieldStyle: enabledFormFieldStyle ?? this.enabledFormFieldStyle,
disabledFormFieldStyle: disabledFormFieldStyle ?? this.disabledFormFieldStyle,
errorFormFieldStyle: errorFormFieldStyle ?? this.errorFormFieldStyle,
iconStyle: iconStyle ?? this.iconStyle,
borderRadius: borderRadius ?? this.borderRadius,
borderWidth: borderWidth ?? this.borderWidth,
pagePadding: pagePadding ?? this.pagePadding,
);