FastThemeBloc constructor

FastThemeBloc({
  1. FastThemeBlocState? initialState,
})

Factory constructor to ensure that only a single instance of FastThemeBloc is used throughout the application.

Implementation

factory FastThemeBloc({FastThemeBlocState? initialState}) {
  if (!hasBeenInstantiated) {
    _instance = FastThemeBloc._(initialState: initialState);
    _hasBeenInstantiated = true;
  }

  return instance;
}