copyWith method

  1. @useResult
FScaffoldStyle copyWith({
  1. Color? backgroundColor,
  2. EdgeInsets? contentPadding,
  3. BoxDecoration? headerDecoration,
  4. BoxDecoration? footerDecoration,
})

Returns a copy of this style with the provided properties replaced.

Implementation

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