瀏覽代碼

Commented functions with explanations

Howard Tseng 7 年之前
父節點
當前提交
5cee70127e
共有 1 個文件被更改,包括 8 次插入2 次删除
  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