wrapWithTag method
Wraps the current text-selection a symmetric pair of tags. If no text is selected, an empty tag-pair is inserted at the current cursor position. If the field is not focused, the empty tag-pair is appended to the current text.
Implementation
void wrapWithTag(String tagName) {
_cache();
String startTag = "<$tagName>";
String endTag = "</$tagName>";
wrapWithStartAndEnd(TagOperation(startTag, endTag, tagName));
}