setBackgroundColor method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'View.setBackgroundColor', apiUrl: 'https://developer.android.com/reference/android/view/View#setBackgroundColor(int)')])
- Color color
Sets the native WebView background color.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.setBackgroundColor)
Parameters - Officially Supported Platforms/Implementations:
color: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'View.setBackgroundColor',
apiUrl:
'https://developer.android.com/reference/android/view/View#setBackgroundColor(int)',
),
],
)
Future<void> setBackgroundColor(Color color) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.setBackgroundColor.name} is not implemented on the current platform',
);
}