copyWith method

  1. @useResult
FScaffoldStyle copyWith({
  1. Color? backgroundColor,
  2. Color? sidebarBackgroundColor,
  3. EdgeInsetsGeometry? childPadding,
  4. BoxDecoration? headerDecoration,
  5. BoxDecoration? footerDecoration,
})
inherited

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

@useResult
FScaffoldStyle copyWith({
  Color? backgroundColor,
  Color? sidebarBackgroundColor,
  EdgeInsetsGeometry? childPadding,
  BoxDecoration? headerDecoration,
  BoxDecoration? footerDecoration,
}) => FScaffoldStyle(
  backgroundColor: backgroundColor ?? this.backgroundColor,
  sidebarBackgroundColor: sidebarBackgroundColor ?? this.sidebarBackgroundColor,
  childPadding: childPadding ?? this.childPadding,
  headerDecoration: headerDecoration ?? this.headerDecoration,
  footerDecoration: footerDecoration ?? this.footerDecoration,
);