Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Prev Previous commit
Next Next commit
Update webview_method_channel.dart
  • Loading branch information
Wian-TMC authored Jan 28, 2021
commit 4662cd7bc25bab8abb714db8b1800dbcad07e4bc
8 changes: 8 additions & 0 deletions packages/webview_flutter/lib/src/webview_method_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ class MethodChannelWebViewPlatform implements WebViewPlatformController {
'headers': headers,
});
}

@override
Future<void> loadAssetHtmlFile(String url) =>
_channel.invokeMethod<String>('loadAssetHtmlFile', url);

@override
Future<void> loadLocalHtmlFile(String url) =>
_channel.invokeMethod<String>('loadLocalHtmlFile', url);

@override
Future<String?> currentUrl() => _channel.invokeMethod<String>('currentUrl');
Expand Down