setBackgroundColor method

  1. @override
Future<void> setBackgroundColor(
  1. Color color
)

Set the current background color of this view.

Implementation

@override
Future<void> setBackgroundColor(Color color) {
  return Future.wait(<Future<void>>[
    _webView.setOpaque(false),
    _webView.setBackgroundColor(Colors.transparent),
    // This method must be called last.
    _webView.scrollView.setBackgroundColor(color),
  ]);
}