getTitle method Null safety

  1. @override
Future<String> getTitle(
  1. String key
)
override

Get the title on a window identified by the given key.

Implementation

@override
Future<String> getTitle(String key) async {
  final title = await _methodChannel.invokeMethod<String>('getTitle', {
    'key': key,
  });
  return title!;
}