copyWith method
- @useResult
- BoxDecorationDelta? decoration,
- ImageFilter? backgroundFilter = imageFilterSentinel,
- BoxConstraints? constraints,
- FSidebarGroupStyleDelta? groupStyle,
- EdgeInsetsGeometry? headerPadding,
- EdgeInsetsGeometry? contentPadding,
Returns a copy of this FSidebarStyle with the given properties replaced.
See customizing widget styles.
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({
BoxDecorationDelta? decoration,
ImageFilter? backgroundFilter = imageFilterSentinel,
BoxConstraints? constraints,
FSidebarGroupStyleDelta? groupStyle,
EdgeInsetsGeometry? headerPadding,
EdgeInsetsGeometry? contentPadding,
EdgeInsetsGeometry? footerPadding,
}) => .new(
decoration: decoration?.call(this.decoration) ?? this.decoration,
backgroundFilter: backgroundFilter == imageFilterSentinel ? this.backgroundFilter : backgroundFilter,
constraints: constraints ?? this.constraints,
groupStyle: groupStyle?.call(this.groupStyle) ?? this.groupStyle,
headerPadding: headerPadding ?? this.headerPadding,
contentPadding: contentPadding ?? this.contentPadding,
footerPadding: footerPadding ?? this.footerPadding,
);