copyWith method

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

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.

systemOverlayStyle

The fallback system overlay style.

This is used as a fallback when no other widgets override AnnotatedRegion<SystemUiOverlayStyle>. Typically, the SystemUiOverlayStyle property is overridden by FHeader.

backgroundColor

The background color.

sidebarBackgroundColor

The sidebar background color.

childPadding

The child padding. Only used when FScaffold.childPad is true.

headerDecoration

The header decoration.

footerDecoration

The footer decoration.

Implementation

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