Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update webview_method_channel.dart
  • Loading branch information
uc-apa authored May 2, 2020
commit 0cec3826b9f15c564214b34a06573df0aea7fbca
7 changes: 7 additions & 0 deletions packages/webview_flutter/lib/src/webview_method_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ class MethodChannelWebViewPlatform implements WebViewPlatformController {
'headers': headers,
});
}

@override
Future<void> loadHtml(String html) async {
return _channel.invokeMethod<void>('loadHtml', <String, dynamic>{
'html': html,
});
}

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