copyWith method

  1. @useResult
FPopoverStyle copyWith({
  1. BoxDecorationDelta? decoration,
  2. ImageFilter barrierFilter(
    1. double
    )? = imageFilterFunctionSentinel,
  3. ImageFilter backgroundFilter(
    1. double
    )? = imageFilterFunctionSentinel,
  4. EdgeInsetsGeometryDelta? viewInsets,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FPopoverStyle copyWith({
  BoxDecorationDelta? decoration,
  ImageFilter Function(double)? barrierFilter = imageFilterFunctionSentinel,
  ImageFilter Function(double)? backgroundFilter = imageFilterFunctionSentinel,
  EdgeInsetsGeometryDelta? viewInsets,
}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  barrierFilter: barrierFilter == imageFilterFunctionSentinel ? this.barrierFilter : barrierFilter,
  backgroundFilter: backgroundFilter == imageFilterFunctionSentinel ? this.backgroundFilter : backgroundFilter,
  viewInsets: viewInsets?.call(this.viewInsets) ?? this.viewInsets,
);