copyWith method

  1. @override
ThemeExtension<CustomTheme> copyWith({
  1. NoticeThemeData? noticeTheme,
  2. LoadingThemeData? loadingTheme,
  3. LoadingStatusThemeData? loadingStatusTheme,
  4. CustomRefreshThemeData? customRefreshTheme,
  5. LoadingFutureThemeData? loadingFutureTheme,
  6. CustomOverlayThemeData? customOverlayTheme,
  7. CustomDialogThemeData? customDialogTheme,
  8. CustomImageThemeData? customImageTheme,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<CustomTheme> copyWith({
  NoticeThemeData? noticeTheme,
  LoadingThemeData? loadingTheme,
  LoadingStatusThemeData? loadingStatusTheme,
  CustomRefreshThemeData? customRefreshTheme,
  LoadingFutureThemeData? loadingFutureTheme,
  CustomOverlayThemeData? customOverlayTheme,
  CustomDialogThemeData? customDialogTheme,
  CustomImageThemeData? customImageTheme,
}) {
  return CustomTheme(
    noticeTheme: noticeTheme ?? this.noticeTheme,
    loadingTheme: loadingTheme ?? this.loadingTheme,
    loadingStatusTheme: loadingStatusTheme ?? this.loadingStatusTheme,
    customRefreshTheme: customRefreshTheme ?? this.customRefreshTheme,
    loadingFutureTheme: loadingFutureTheme ?? this.loadingFutureTheme,
    customOverlayTheme: customOverlayTheme ?? this.customOverlayTheme,
    customDialogTheme: customDialogTheme ?? this.customDialogTheme,
    customImageTheme: customImageTheme ?? this.customImageTheme,
  );
}