copyWith method
AppTheme
copyWith({
- required String id,
- String? description,
- ThemeData? data,
- AppThemeOptions? options,
Creates a copy of this AppTheme but with the given fields replaced with the new values.
Id will be replaced by the given id
.
Implementation
AppTheme copyWith({
required String id,
String? description,
ThemeData? data,
AppThemeOptions? options,
}) {
return AppTheme(
id: id,
description: description ?? this.description,
data: data ?? this.data,
options: options ?? this.options,
);
}