Window constructor
Window(
- BindingContext? context,
- Document document
Implementation
Window(BindingContext? context, this.document)
: screen = Screen(context), super(context) {
window.onPlatformBrightnessChanged = () {
dispatchEvent(ColorSchemeChangeEvent(colorScheme));
};
}