copyWith method

  1. @useResult
FPopoverMenuStyle copyWith({
  1. FItemGroupStyleDelta? itemGroupStyle,
  2. FTileGroupStyleDelta? tileGroupStyle,
  3. double? maxWidth,
  4. BoxDecorationDelta? decoration,
  5. ImageFilter Function(double)? barrierFilter()?,
  6. ImageFilter Function(double)? backgroundFilter()?,
  7. EdgeInsetsGeometry? viewInsets,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FPopoverMenuStyle copyWith({
  FItemGroupStyleDelta? itemGroupStyle,
  FTileGroupStyleDelta? tileGroupStyle,
  double? maxWidth,
  BoxDecorationDelta? decoration,
  ImageFilter Function(double)? Function()? barrierFilter,
  ImageFilter Function(double)? Function()? backgroundFilter,
  EdgeInsetsGeometry? viewInsets,
}) => .new(
  itemGroupStyle: itemGroupStyle?.call(this.itemGroupStyle) ?? this.itemGroupStyle,
  tileGroupStyle: tileGroupStyle?.call(this.tileGroupStyle) ?? this.tileGroupStyle,
  maxWidth: maxWidth ?? this.maxWidth,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  barrierFilter: barrierFilter == null ? this.barrierFilter : barrierFilter(),
  backgroundFilter: backgroundFilter == null ? this.backgroundFilter : backgroundFilter(),
  viewInsets: viewInsets ?? this.viewInsets,
);