copyWith method
- @useResult
- BoxDecoration? decoration,
- ImageFilter barrierFilter()?,
- ImageFilter backgroundFilter()?,
- EdgeInsetsGeometry? viewInsets,
Returns a copy of this FPopoverStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FPopoverStyle.decoration - The popover's decoration.
- FPopoverStyle.barrierFilter - An optional callback that takes the current animation transition value (0.
- FPopoverStyle.backgroundFilter - An optional callback that takes the current animation transition value (0.
- FPopoverStyle.viewInsets - The additional insets of the view.
Implementation
@useResult
FPopoverStyle copyWith({
BoxDecoration? decoration,
ImageFilter Function(double)? barrierFilter,
ImageFilter Function(double)? backgroundFilter,
EdgeInsetsGeometry? viewInsets,
}) => FPopoverStyle(
decoration: decoration ?? this.decoration,
barrierFilter: barrierFilter ?? this.barrierFilter,
backgroundFilter: backgroundFilter ?? this.backgroundFilter,
viewInsets: viewInsets ?? this.viewInsets,
);