isEmpty method
if html is equal to html RichTextEditor sets by default at start (
) so that RichTextEditor can be considered as 'empty'.Implementation
Future<bool> isEmpty() async {
htmlLocal = await javascriptExecutor.getCurrentHtml();
return htmlLocal == '<p></p>';
}