handleDarkEvent method
Handles the event to set the dark theme.
Implementation
Stream<FastThemeBlocState> handleDarkEvent() async* {
yield currentState.copyWith(
brightness: Brightness.dark,
themeMode: ThemeMode.dark,
);
}
Handles the event to set the dark theme.
Stream<FastThemeBlocState> handleDarkEvent() async* {
yield currentState.copyWith(
brightness: Brightness.dark,
themeMode: ThemeMode.dark,
);
}