copyWith method
- @useResult
- BoxDecoration? decoration,
- ImageFilter? backgroundFilter,
- BoxConstraints? constraints,
- FSidebarGroupStyle groupStyle(
- FSidebarGroupStyle style
- EdgeInsetsGeometry? headerPadding,
- EdgeInsetsGeometry? contentPadding,
Returns a copy of this FSidebarStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSidebarStyle.decoration - The decoration.
- FSidebarStyle.backgroundFilter - An optional background filter applied to the sidebar.
- FSidebarStyle.constraints - The sidebar's width.
- FSidebarStyle.groupStyle - The group's style.
- FSidebarStyle.headerPadding - The padding for the header section.
- FSidebarStyle.contentPadding - The padding for the content section.
- FSidebarStyle.footerPadding - The padding for the footer section.
Implementation
@useResult
FSidebarStyle copyWith({
BoxDecoration? decoration,
ImageFilter? backgroundFilter,
BoxConstraints? constraints,
FSidebarGroupStyle Function(FSidebarGroupStyle style)? groupStyle,
EdgeInsetsGeometry? headerPadding,
EdgeInsetsGeometry? contentPadding,
EdgeInsetsGeometry? footerPadding,
}) => FSidebarStyle(
decoration: decoration ?? this.decoration,
backgroundFilter: backgroundFilter ?? this.backgroundFilter,
constraints: constraints ?? this.constraints,
groupStyle: groupStyle != null ? groupStyle(this.groupStyle) : this.groupStyle,
headerPadding: headerPadding ?? this.headerPadding,
contentPadding: contentPadding ?? this.contentPadding,
footerPadding: footerPadding ?? this.footerPadding,
);