@@ -151,34 +151,34 @@ class FlutterWebviewPlugin {
151151
152152 /// Close the Webview
153153 /// Will trigger the [onDestroy] event
154- Future close () => _channel.invokeMethod ('close' );
154+ Future < Null > close () async => await _channel.invokeMethod ('close' );
155155
156156 /// Reloads the WebView.
157- Future reload () => _channel.invokeMethod ('reload' );
157+ Future < Null > reload () async => await _channel.invokeMethod ('reload' );
158158
159159 /// Navigates back on the Webview.
160- Future goBack () => _channel.invokeMethod ('back' );
160+ Future < Null > goBack () async => await _channel.invokeMethod ('back' );
161161
162162 /// Navigates forward on the Webview.
163- Future goForward () => _channel.invokeMethod ('forward' );
163+ Future < Null > goForward () async => await _channel.invokeMethod ('forward' );
164164
165165 // Hides the webview
166- Future hide () => _channel.invokeMethod ('hide' );
166+ Future < Null > hide () async => await _channel.invokeMethod ('hide' );
167167
168168 // Shows the webview
169- Future show () => _channel.invokeMethod ('show' );
169+ Future < Null > show () async => await _channel.invokeMethod ('show' );
170170
171171 // Reload webview with a url
172- Future reloadUrl (String url) async {
172+ Future < Null > reloadUrl (String url) async {
173173 final args = < String , String > {'url' : url};
174174 await _channel.invokeMethod ('reloadUrl' , args);
175175 }
176176
177177 // Clean cookies on WebView
178- Future cleanCookies () async => _channel.invokeMethod ('cleanCookies' );
178+ Future < Null > cleanCookies () async => await _channel.invokeMethod ('cleanCookies' );
179179
180180 // Stops current loading process
181- Future stopLoading () => _channel.invokeMethod ('stopLoading' );
181+ Future < Null > stopLoading () async => await _channel.invokeMethod ('stopLoading' );
182182
183183 /// Close all Streams
184184 void dispose () {
0 commit comments