@@ -881,7 +882,7 @@ class InAppWebViewController {
///This is not always the same as the URL passed to [InAppWebView.onLoadStarted] because although the load for that URL has begun, the current page may not have changed.
Future<String>getUrl()async{
Map<String,dynamic>args=<String,dynamic>{};
if(_inAppBrowserUuid!=null){
if(_inAppBrowserUuid!=null&&_inAppBrowser!=null){
_inAppBrowser._throwIsNotOpened();
args.putIfAbsent('uuid',()=>_inAppBrowserUuid);
}
...
...
@@ -891,7 +892,7 @@ class InAppWebViewController {
///Gets the title for the current page.
Future<String>getTitle()async{
Map<String,dynamic>args=<String,dynamic>{};
if(_inAppBrowserUuid!=null){
if(_inAppBrowserUuid!=null&&_inAppBrowser!=null){
_inAppBrowser._throwIsNotOpened();
args.putIfAbsent('uuid',()=>_inAppBrowserUuid);
}
...
...
@@ -901,7 +902,7 @@ class InAppWebViewController {
///Gets the progress for the current page. The progress value is between 0 and 100.
Future<int>getProgress()async{
Map<String,dynamic>args=<String,dynamic>{};
if(_inAppBrowserUuid!=null){
if(_inAppBrowserUuid!=null&&_inAppBrowser!=null){
_inAppBrowser._throwIsNotOpened();
args.putIfAbsent('uuid',()=>_inAppBrowserUuid);
}
...
...
@@ -932,7 +933,7 @@ class InAppWebViewController {