copyWith method
ThemeExtension<CustomTheme>
copyWith({
- NoticeThemeData? noticeTheme,
- LoadingThemeData? loadingTheme,
- LoadingStatusThemeData? loadingStatusTheme,
- CustomRefreshThemeData? customRefreshTheme,
- LoadingFutureThemeData? loadingFutureTheme,
- CustomOverlayThemeData? customOverlayTheme,
- CustomDialogThemeData? customDialogTheme,
- 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,
);
}