toggleLinePrefixCommand method

TextLineCommandResult toggleLinePrefixCommand(
  1. List<String> lines, {
  2. required String prefix,
  3. bool addSpaceWhenNonEmpty = true,
  4. bool skipBlankLinesWhenChecking = true,
})

Implementation

TextLineCommandResult toggleLinePrefixCommand(
  List<String> lines, {
  required String prefix,
  bool addSpaceWhenNonEmpty = true,
  bool skipBlankLinesWhenChecking = true,
}) {
  return toggleLinePrefix(
    lines,
    cursor: cursor,
    selectionBase: selectionBase,
    selectionExtent: selectionExtent,
    prefix: prefix,
    addSpaceWhenNonEmpty: addSpaceWhenNonEmpty,
    skipBlankLinesWhenChecking: skipBlankLinesWhenChecking,
  );
}