initialize static method
Initializes the Window class.
Example
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Window.initialize();
runApp(MyApp());
}
Implementation
static Future<void> initialize() async {
if (Platform.isMacOS) {
await WindowManipulator.initialize();
setEffect(effect: WindowEffect.values[0]);
return;
}
await _kChannel.invokeMethod(_kInitialize);
_kCompleter.complete();
}