copyWith method

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

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,
}) => FSelectContentStyle(
  sectionStyle: sectionStyle != null ? sectionStyle(this.sectionStyle) : this.sectionStyle,
  scrollHandleStyle: scrollHandleStyle != null ? scrollHandleStyle(this.scrollHandleStyle) : this.scrollHandleStyle,
  padding: padding ?? this.padding,
);