copyWith method
- @useResult
- FSelectSectionStyle sectionStyle()?,
- FSelectScrollHandleStyle scrollHandleStyle()?,
- 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,
);