copyWith method
- @useResult
- FSelectSectionStyle sectionStyle(
- FSelectSectionStyle style
- FSelectScrollHandleStyle scrollHandleStyle(
- FSelectScrollHandleStyle style
- EdgeInsetsGeometry? padding,
Returns a copy of this FSelectContentStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSelectContentStyle.sectionStyle - A section's style.
- FSelectContentStyle.scrollHandleStyle - A scroll handle's style.
- FSelectContentStyle.padding - The padding surrounding the content.
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,
);