copyWith method

  1. @useResult
FStyle copyWith({
  1. FFormFieldStyle? formFieldStyle,
  2. FFocusedOutlineStyle? focusedOutlineStyle,
  3. IconThemeData? iconStyle,
  4. BorderRadius? borderRadius,
  5. double? borderWidth,
  6. EdgeInsets? pagePadding,
  7. List<BoxShadow>? shadow,
  8. FTappableStyle? tappableStyle,
})
inherited

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

@useResult
FStyle copyWith({
  FFormFieldStyle? formFieldStyle,
  FFocusedOutlineStyle? focusedOutlineStyle,
  IconThemeData? iconStyle,
  BorderRadius? borderRadius,
  double? borderWidth,
  EdgeInsets? pagePadding,
  List<BoxShadow>? shadow,
  FTappableStyle? tappableStyle,
}) => FStyle(
  formFieldStyle: formFieldStyle ?? this.formFieldStyle,
  focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
  iconStyle: iconStyle ?? this.iconStyle,
  borderRadius: borderRadius ?? this.borderRadius,
  borderWidth: borderWidth ?? this.borderWidth,
  pagePadding: pagePadding ?? this.pagePadding,
  shadow: shadow ?? this.shadow,
  tappableStyle: tappableStyle ?? this.tappableStyle,
);