Window constructor

Window(
  1. BindingContext? context,
  2. Document document
)

Implementation

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