handleDarkEvent method

Stream<FastThemeBlocState> handleDarkEvent()

Handles the event to set the dark theme.

Implementation

Stream<FastThemeBlocState> handleDarkEvent() async* {
  yield currentState.copyWith(
    brightness: Brightness.dark,
    themeMode: ThemeMode.dark,
  );
}