copyWith method
- @useResult
- BoxDecorationDelta? decoration,
- ImageFilter? backgroundFilter = imageFilterSentinel,
- BoxConstraints? constraints,
- FSidebarGroupStyleDelta? groupStyle,
- EdgeInsetsGeometryDelta? headerPadding,
- EdgeInsetsGeometryDelta? 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,
EdgeInsetsGeometryDelta? headerPadding,
EdgeInsetsGeometryDelta? contentPadding,
EdgeInsetsGeometryDelta? 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?.call(this.headerPadding) ?? this.headerPadding,
contentPadding: contentPadding?.call(this.contentPadding) ?? this.contentPadding,
footerPadding: footerPadding?.call(this.footerPadding) ?? this.footerPadding,
);