copyWith method

AppTheme copyWith({
  1. required String id,
  2. String? description,
  3. ThemeData? data,
  4. 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,
  );
}