copyWith method

  1. @useResult
FSelectContentStyle copyWith({
  1. FSelectSectionStyle sectionStyle(
    1. FSelectSectionStyle
    )?,
  2. FSelectScrollHandleStyle scrollHandleStyle(
    1. FSelectScrollHandleStyle
    )?,
  3. EdgeInsetsGeometry? padding,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

sectionStyle

A section's style.

scrollHandleStyle

A scroll handle's style.

padding

The padding surrounding the content. Defaults to const EdgeInsets.symmetric(vertical: 5).

Implementation

@useResult
FSelectContentStyle copyWith({
  FSelectSectionStyle Function(FSelectSectionStyle)? sectionStyle,
  FSelectScrollHandleStyle Function(FSelectScrollHandleStyle)? scrollHandleStyle,
  EdgeInsetsGeometry? padding,
}) => FSelectContentStyle(
  sectionStyle: sectionStyle != null ? sectionStyle(this.sectionStyle) : this.sectionStyle,
  scrollHandleStyle: scrollHandleStyle != null ? scrollHandleStyle(this.scrollHandleStyle) : this.scrollHandleStyle,
  padding: padding ?? this.padding,
);