copyWith method

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

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

See customizing widget styles.

Parameters

Implementation

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