setBackgroundColor method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'View.setBackgroundColor', apiUrl: 'https://developer.android.com/reference/android/view/View#setBackgroundColor(int)')])
Future<void> setBackgroundColor(
  1. Color color
)

Sets the native WebView background color.

Officially Supported Platforms/Implementations:

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',
  );
}