createWebArchiveData method Null safety

Future<Uint8List?> createWebArchiveData()

Creates a web archive of the web view’s current contents asynchronously. Returns null if a problem occurred.

NOTE: available only on iOS 14.0+.

Official iOS API: https://developer.apple.com/documentation/webkit/wkwebview/3650491-createwebarchivedata

Implementation

Future<Uint8List?> createWebArchiveData() async {
  Map<String, dynamic> args = <String, dynamic>{};
  return await _channel.invokeMethod('createWebArchiveData', args);
}