diff --git a/lib/src/base.dart b/lib/src/base.dart index ce51474c..293b5bae 100644 --- a/lib/src/base.dart +++ b/lib/src/base.dart @@ -224,6 +224,12 @@ class FlutterWebviewPlugin { return res; } + ///Get userAgent + Future getUserAgent() async { + final String userAgent = await _channel.invokeMethod('getUserAgent'); + return userAgent; + } + /// Close the Webview /// Will trigger the [onDestroy] event Future close() async {