copyWith method

  1. @useResult
FStyle copyWith({
  1. FFormFieldStyle? enabledFormFieldStyle,
  2. FFormFieldStyle? disabledFormFieldStyle,
  3. FFormFieldErrorStyle? errorFormFieldStyle,
  4. FIconStyle? iconStyle,
  5. BorderRadius? borderRadius,
  6. double? borderWidth,
  7. 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,
    );