copyWith method

  1. @useResult
FStyle copyWith({
  1. FFormFieldStyleDelta? formFieldStyle,
  2. FFocusedOutlineStyleDelta? focusedOutlineStyle,
  3. IconThemeDataDelta? iconStyle,
  4. BorderRadius? borderRadius,
  5. double? borderWidth,
  6. EdgeInsetsDelta? pagePadding,
  7. List<BoxShadow>? shadow,
  8. FTappableStyleDelta? tappableStyle,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FStyle copyWith({
  FFormFieldStyleDelta? formFieldStyle,
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
  IconThemeDataDelta? iconStyle,
  BorderRadius? borderRadius,
  double? borderWidth,
  EdgeInsetsDelta? pagePadding,
  List<BoxShadow>? shadow,
  FTappableStyleDelta? tappableStyle,
}) => .new(
  formFieldStyle: formFieldStyle?.call(this.formFieldStyle) ?? this.formFieldStyle,
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
  iconStyle: iconStyle?.call(this.iconStyle) ?? this.iconStyle,
  borderRadius: borderRadius ?? this.borderRadius,
  borderWidth: borderWidth ?? this.borderWidth,
  pagePadding: pagePadding?.call(this.pagePadding) ?? this.pagePadding,
  shadow: shadow ?? this.shadow,
  tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
);