openWindow method

  1. @override
Future<String> openWindow(
  1. WindowOptions options
)
override

Implementation

@override
Future<String> openWindow(WindowOptions options) async {
  final id = await methodChannel.invokeMethod<String>(
    'openWindow',
    options.toMap(),
  );
  if (id == null) {
    throw StateError('openWindow a renvoyé un id nul');
  }
  return id;
}