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