outdentAtSelections method

bool outdentAtSelections({
  1. int width = 2,
})

Outdents every line touched by an active cursor or selection.

Implementation

bool outdentAtSelections({int width = 2}) {
  final indentWidth = width < 1 ? 1 : width;
  return _editSelectedLineStarts((lineText) {
    final removal = _leadingIndentRemovalCount(lineText, indentWidth);
    return removal == 0 ? lineText : lineText.sublist(removal);
  });
}