copyWith method
- @useResult
- SystemUiOverlayStyle? systemOverlayStyle,
- Color? backgroundColor,
- Color? sidebarBackgroundColor,
- EdgeInsetsGeometry? childPadding,
- BoxDecoration? headerDecoration,
Returns a copy of this FScaffoldStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FScaffoldStyle.systemOverlayStyle - The fallback system overlay style.
- FScaffoldStyle.backgroundColor - The background color.
- FScaffoldStyle.sidebarBackgroundColor - The sidebar background color.
- FScaffoldStyle.childPadding - The child padding.
- FScaffoldStyle.headerDecoration - The header decoration.
- FScaffoldStyle.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,
);