setBackgroundColor method

dynamic setBackgroundColor(
  1. Color? color
)

Set a Color for the editor's background

Implementation

setBackgroundColor(Color? color) async {
  String? hex = color!.toHexColorString();
  await executeJavascript("setBackgroundColor('$hex');");
}