copyWith method

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

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FStyle copyWith({
  FFormFieldStyle Function(FFormFieldStyle style)? formFieldStyle,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
  IconThemeData? iconStyle,
  BorderRadius? borderRadius,
  double? borderWidth,
  EdgeInsets? pagePadding,
  List<BoxShadow>? shadow,
  FTappableStyle Function(FTappableStyle style)? tappableStyle,
}) => FStyle(
  formFieldStyle: formFieldStyle != null ? formFieldStyle(this.formFieldStyle) : this.formFieldStyle,
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.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 != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
);