copyWith method
- @useResult
- FSelectSectionStyle sectionStyle(
- FSelectSectionStyle style
- FSelectScrollHandleStyle scrollHandleStyle(
- FSelectScrollHandleStyle style
- EdgeInsetsGeometry? padding,
- BoxDecoration? decoration,
- ImageFilter barrierFilter()?,
- ImageFilter backgroundFilter()?,
- EdgeInsetsGeometry? viewInsets,
Returns a copy of this FSelectContentStyle with the given properties replaced.
Consider using the CLI to generate a style.
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({
FSelectSectionStyle Function(FSelectSectionStyle style)? sectionStyle,
FSelectScrollHandleStyle Function(FSelectScrollHandleStyle style)? scrollHandleStyle,
EdgeInsetsGeometry? padding,
BoxDecoration? decoration,
ImageFilter Function(double)? barrierFilter,
ImageFilter Function(double)? backgroundFilter,
EdgeInsetsGeometry? viewInsets,
}) => .new(
sectionStyle: sectionStyle != null ? sectionStyle(this.sectionStyle) : this.sectionStyle,
scrollHandleStyle: scrollHandleStyle != null ? scrollHandleStyle(this.scrollHandleStyle) : this.scrollHandleStyle,
padding: padding ?? this.padding,
decoration: decoration ?? this.decoration,
barrierFilter: barrierFilter ?? this.barrierFilter,
backgroundFilter: backgroundFilter ?? this.backgroundFilter,
viewInsets: viewInsets ?? this.viewInsets,
);