textToggleLinePrefix function

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

Implementation

TextLineCommandResult textToggleLinePrefix({
  required List<String> lines,
  required TextLineStateSnapshot state,
  required String prefix,
  bool addSpaceWhenNonEmpty = true,
  bool skipBlankLinesWhenChecking = true,
}) {
  return state.toggleLinePrefixCommand(
    lines,
    prefix: prefix,
    addSpaceWhenNonEmpty: addSpaceWhenNonEmpty,
    skipBlankLinesWhenChecking: skipBlankLinesWhenChecking,
  );
}