Explorar el Código

Commented functions with explanations

Howard Tseng hace 7 años
padre
commit
5cee70127e
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      lib/src/base.dart

+ 8 - 2
lib/src/base.dart

@@ -113,10 +113,16 @@ class FlutterWebviewPlugin {
   /// Will trigger the [onDestroy] event
   Future close() => _channel.invokeMethod("close");
 
+  /// Reloads the WebView.
+  /// This is only available on Android for now.
   Future reload() => _channel.invokeMethod("reload");
-
+  
+  /// Navigates back on the Webview.
+  /// This is only available on Android for now.
   Future goBack() => _channel.invokeMethod("back");
-
+  
+  /// Navigates forward on the Webview.
+  /// This is only available on Android for now.
   Future goForward() => _channel.invokeMethod("forward");
 
   /// Close all Streams