setBackgroundColor method

Future<void> setBackgroundColor(
  1. int red,
  2. int green,
  3. int blue
)

Sets the background color of the viewer.

The color is given as RGB values, with each integer being in range between 0 and 255 inclusive.

Implementation

Future<void> setBackgroundColor(int red, int green, int blue) {
  return _channel.invokeMethod(
      Functions.setBackgroundColor, <String, dynamic>{
    Parameters.red: red,
    Parameters.green: green,
    Parameters.blue: blue
  });
}