create method Null safety

  1. @override
Future<void> create(
  1. String key,
  2. {Size? size,
  3. String? title,
  4. Alignment? alignment}
)
override

Create a new window identified by the given key.

If there already exists a window with key then the native code won't create another window.

An optional size can be passed. If none is given it should use the size of the main window.

An optional title can be passed. If none is given it should use the title of the main window.

The alignment can be used to position the created window on the screen. If none is passed it should be centered on top of the window that will create this window.

Implementation

@override
Future<void> create(
  String key, {
  Size? size,
  String? title,
  Alignment? alignment,
}) async =>
    throw UnimplementedError();