indentAtSelections method

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

Indents every line touched by an active cursor or selection.

Implementation

bool indentAtSelections({int width = 2}) {
  final pad = List<String>.filled(width < 1 ? 1 : width, ' ');
  return _editSelectedLineStarts((lineText) => [...pad, ...lineText]);
}