copyWith method

  1. @override
FastThemeBlocState copyWith({
  1. ThemeMode? themeMode,
  2. Brightness? brightness,
})
override

Creates a copy of this TModel but with the given fields replaced with the new values.

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastThemeBlocState copyWith({ThemeMode? themeMode, Brightness? brightness}) {
  return FastThemeBlocState(
    brightness: brightness ?? this.brightness,
    themeMode: themeMode ?? this.themeMode,
  );
}