setTextBackgroundColor method

dynamic setTextBackgroundColor(
  1. Color? color
)

Set a Color for the selected text's background

Implementation

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