getOriginalUrl method Null safety

  1. @Deprecated('Use `InAppWebViewController.getOriginalUrl` instead')
Future<Uri?> getOriginalUrl()
@Deprecated('Use `InAppWebViewController.getOriginalUrl` instead')

Use InAppWebViewController.getOriginalUrl instead.

Implementation

@Deprecated('Use `InAppWebViewController.getOriginalUrl` instead')
Future<Uri?> getOriginalUrl() async {
  Map<String, dynamic> args = <String, dynamic>{};
  String? url = await _channel.invokeMethod('getOriginalUrl', args);
  return url != null ? Uri.parse(url) : null;
}