copyWith method
- @useResult
- Color? backgroundColor,
- Color? sidebarBackgroundColor,
- EdgeInsetsGeometry? childPadding,
- BoxDecoration? headerDecoration,
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,
);