copyWith method

  1. @useResult
FPopoverStyle copyWith({
  1. DecorationDelta? decoration,
  2. ImageFilter barrierFilter(
    1. double
    )? = Sentinels.imageFilterFunction,
  3. ImageFilter backgroundFilter(
    1. double
    )? = Sentinels.imageFilterFunction,
  4. EdgeInsetsGeometryDelta? popoverPadding,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FPopoverStyle copyWith({
  DecorationDelta? decoration,
  ImageFilter Function(double)? barrierFilter = Sentinels.imageFilterFunction,
  ImageFilter Function(double)? backgroundFilter = Sentinels.imageFilterFunction,
  EdgeInsetsGeometryDelta? popoverPadding,
}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  barrierFilter: barrierFilter == Sentinels.imageFilterFunction ? this.barrierFilter : barrierFilter,
  backgroundFilter: backgroundFilter == Sentinels.imageFilterFunction ? this.backgroundFilter : backgroundFilter,
  popoverPadding: popoverPadding?.call(this.popoverPadding) ?? this.popoverPadding,
);