setFontSize method
Apply a font size to selected text (Value can only be between 1 and 7)
Implementation
setFontSize(int fontSize) async {
if (fontSize < 1 || fontSize > 7) {
throw ("Font size should have a value between 1-7");
}
await executeJavascript("setFontSize('$fontSize');");
}