We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ceba71 commit 14ceddaCopy full SHA for 14cedda
1 file changed
lib/src/base.dart
@@ -224,6 +224,12 @@ class FlutterWebviewPlugin {
224
return res;
225
}
226
227
+ ///Get userAgent
228
+ Future<String> getUserAgent() async {
229
+ final String userAgent = await _channel.invokeMethod('getUserAgent');
230
+ return userAgent;
231
+ }
232
+
233
/// Close the Webview
234
/// Will trigger the [onDestroy] event
235
Future<void> close() async {
0 commit comments