copyWith method
- @useResult
- FSelectSectionStyleDelta? sectionStyle,
- FSelectScrollHandleStyleDelta? scrollHandleStyle,
- EdgeInsetsGeometry? padding,
- BoxDecorationDelta? decoration,
- ImageFilter Function(double)? barrierFilter()?,
- ImageFilter Function(double)? backgroundFilter()?,
- EdgeInsetsGeometry? viewInsets,
Returns a copy of this FSelectContentStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSelectContentStyle.sectionStyle - A section's style.
- FSelectContentStyle.scrollHandleStyle - A scroll handle's style.
- FSelectContentStyle.padding - The padding surrounding the content.
- FSelectContentStyle.decoration - The popover's decoration.
- FSelectContentStyle.barrierFilter - An optional callback that takes the current animation transition value (0.0 to 1.0) and returns an ImageFilter that is used as the barrier.
- FSelectContentStyle.backgroundFilter - An optional callback that takes the current animation transition value (0.0 to 1.0) and returns an ImageFilter that is used as the background.
- FSelectContentStyle.viewInsets - The additional insets of the view.
Implementation
@useResult
FSelectContentStyle copyWith({
FSelectSectionStyleDelta? sectionStyle,
FSelectScrollHandleStyleDelta? scrollHandleStyle,
EdgeInsetsGeometry? padding,
BoxDecorationDelta? decoration,
ImageFilter Function(double)? Function()? barrierFilter,
ImageFilter Function(double)? Function()? backgroundFilter,
EdgeInsetsGeometry? viewInsets,
}) => .new(
sectionStyle: sectionStyle?.call(this.sectionStyle) ?? this.sectionStyle,
scrollHandleStyle: scrollHandleStyle?.call(this.scrollHandleStyle) ?? this.scrollHandleStyle,
padding: padding ?? this.padding,
decoration: decoration?.call(this.decoration) ?? this.decoration,
barrierFilter: barrierFilter == null ? this.barrierFilter : barrierFilter(),
backgroundFilter: backgroundFilter == null ? this.backgroundFilter : backgroundFilter(),
viewInsets: viewInsets ?? this.viewInsets,
);