copyWith method

  1. @useResult
FSidebarStyle copyWith({
  1. BoxDecoration? decoration,
  2. ImageFilter? backgroundFilter,
  3. BoxConstraints? constraints,
  4. FSidebarGroupStyle groupStyle(
    1. FSidebarGroupStyle style
    )?,
  5. EdgeInsetsGeometry? headerPadding,
  6. EdgeInsetsGeometry? contentPadding,
  7. EdgeInsetsGeometry? footerPadding,
})

Returns a copy of this FSidebarStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

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,
);