FastThemeBloc constructor

FastThemeBloc({
  1. FastThemeBlocState? initialState,
})

Implementation

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