copyWith method Null safety

PueTheme copyWith(
  1. {required BuildContext context,
  2. double? gutters,
  3. TextStyle? headerTextStyle,
  4. TextStyle? headerSubtextStyle,
  5. Widget? background}
)

Implementation

PueTheme copyWith({
  required BuildContext context,
  double? gutters,
  TextStyle? headerTextStyle,
  TextStyle? headerSubtextStyle,
  Widget? background,
}) {
  return PueTheme(
    context: context,
    gutters: gutters ?? this.gutters,
    headerTextStyle: headerTextStyle ?? this.headerTextStyle,
    headerSubtextStyle: headerSubtextStyle ?? this.headerSubtextStyle,
    background: background ?? this.background,
  );
}