wrapSelection method

bool wrapSelection(
  1. String before, {
  2. String? after,
})

Wraps the current selection with before and after.

If after is omitted, before is used for both sides.

Implementation

bool wrapSelection(String before, {String? after}) {
  final changed = _model.wrapSelection(before, after: after);
  if (changed) {
    notifyListeners();
  }
  return changed;
}