copyWith method

  1. @override
FastThemeBlocState copyWith({
  1. bool? isInitialized,
  2. bool? isInitializing,
  3. ThemeMode? themeMode,
  4. Brightness? brightness,
})
override

Creates a copy of the current state with the given updated values.

Implementation

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