copyWith method

  1. @useResult
FSelectContentStyle copyWith({
  1. FSelectSectionStyleDelta? sectionStyle,
  2. FSelectScrollHandleStyleDelta? scrollHandleStyle,
  3. EdgeInsetsGeometry? padding,
  4. BoxDecorationDelta? decoration,
  5. ImageFilter Function(double)? barrierFilter()?,
  6. ImageFilter Function(double)? backgroundFilter()?,
  7. EdgeInsetsGeometry? viewInsets,
})

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

See customizing widget styles.

Parameters

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