handleThemeChangeEvent method

Stream<FastThemeBlocState> handleThemeChangeEvent(
  1. FastThemeBlocEventType? type
)

Handles the theme change events.

Implementation

Stream<FastThemeBlocState> handleThemeChangeEvent(
  FastThemeBlocEventType? type,
) async* {
  switch (type) {
    case FastThemeBlocEventType.light:
      yield* handleLightEvent();
    case FastThemeBlocEventType.dark:
      yield* handleDarkEvent();
    case FastThemeBlocEventType.system:
      yield* handleSystemEvent();
    default:
      break;
  }
}