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 platform_interface.dart
  • Loading branch information
Wian-TMC authored Jan 28, 2021
commit 892639860c4edefb8f054adcffb0841b678c5615
20 changes: 20 additions & 0 deletions packages/webview_flutter/lib/platform_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,26 @@ abstract class WebViewPlatformController {
throw UnimplementedError(
"WebView loadUrl is not implemented on the current platform");
}

/// Load html file from local path
///
/// `url` must not be null.
///
/// Throws an ArgumentError if `url` is not a valid URL string.
Future<void> loadAssetHtmlFile(String url) {
throw UnimplementedError(
"WebView loadAssetHtmlFile is not implemented on the current platform");
}

/// Load html file from local path
///
/// `url` must not be null.
///
/// Throws an ArgumentError if `url` is not a valid URL string.
Future<void> loadLocalHtmlFile(String url) {
throw UnimplementedError(
"WebView loadLocalHtmlFile is not implemented on the current platform");
}

/// Updates the webview settings.
///
Expand Down