hideToolbar method
void
hideToolbar()
隐藏工具条
Implementation
void hideToolbar() {
delegate?.hideToolbar(true);
TextEditingValue? value = delegate?.textEditingValue;
var text = value?.text.replaceAll(RegExp("\\n"), "") ?? "";
String data = value?.selection.textInside(text) ?? "";
if (data.isNotEmptyString) {
delegate?.copySelection(SelectionChangedCause.toolbar);
ClipboardUtils.setClipboardData(data);
}
}