copyWith method

  1. @useResult
FSelectContentStyle copyWith({
  1. FSelectSectionStyle sectionStyle(
    1. FSelectSectionStyle style
    )?,
  2. FSelectScrollHandleStyle scrollHandleStyle(
    1. FSelectScrollHandleStyle style
    )?,
  3. EdgeInsetsGeometry? padding,
  4. BoxDecoration? decoration,
  5. ImageFilter barrierFilter(
    1. double
    )?,
  6. ImageFilter backgroundFilter(
    1. double
    )?,
  7. EdgeInsetsGeometry? viewInsets,
})

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

Consider using the CLI to generate a style.

Parameters

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,
);