FastThemeBloc constructor

FastThemeBloc({
  1. FastThemeBlocState? initialState,
})

Implementation

FastThemeBloc({
  FastThemeBlocState? initialState,
})  : assert((initialState != null && initialState.brightness != null) ||
          initialState == null),
      super(initialState: initialState ?? FastThemeBlocState()) {
  WidgetsBinding.instance.platformDispatcher.onPlatformBrightnessChanged =
      onPlatformBrightnessChanged;
}