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