copyWith method

  1. @useResult
FStyle copyWith({
  1. FFormFieldStyle? enabledFormFieldStyle,
  2. FFormFieldStyle? disabledFormFieldStyle,
  3. FFormFieldErrorStyle? errorFormFieldStyle,
  4. FFocusedOutlineStyle? focusedOutlineStyle,
  5. FIconStyle? iconStyle,
  6. BorderRadius? borderRadius,
  7. double? borderWidth,
  8. EdgeInsets? pagePadding,
})

Returns a copy of this FStyle with the given properties replaced.

Implementation

@useResult
FStyle copyWith({
  FFormFieldStyle? enabledFormFieldStyle,
  FFormFieldStyle? disabledFormFieldStyle,
  FFormFieldErrorStyle? errorFormFieldStyle,
  FFocusedOutlineStyle? focusedOutlineStyle,
  FIconStyle? iconStyle,
  BorderRadius? borderRadius,
  double? borderWidth,
  EdgeInsets? pagePadding,
}) =>
    FStyle(
      enabledFormFieldStyle: enabledFormFieldStyle ?? this.enabledFormFieldStyle,
      disabledFormFieldStyle: disabledFormFieldStyle ?? this.disabledFormFieldStyle,
      errorFormFieldStyle: errorFormFieldStyle ?? this.errorFormFieldStyle,
      focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
      iconStyle: iconStyle ?? this.iconStyle,
      borderRadius: borderRadius ?? this.borderRadius,
      borderWidth: borderWidth ?? this.borderWidth,
      pagePadding: pagePadding ?? this.pagePadding,
    );