smartSplit method

Iterable<String> smartSplit([
  1. int? maxPieceSize
])

Implementation

Iterable<String> smartSplit([int? maxPieceSize]) => multiSplitW(const [
  "\n",
  " ",
  ".",
  ",",
  ";",
  "\"",
  ":",
  "!",
  "?",
  "(",
  ")",
  "[",
  "]",
  "{",
  "}",
  "\r",
  "\t",
  "-",
  "_",
  "'",
  "—",
  "–",
  "…",
  "‘",
  "’",
  "“",
  "”",
  "«",
  "»",
  "‹",
  "›",
  ">",
  "<",
  "/",
  "=",
  "\\",
  "+",
  "*",
  "&",
  "@",
  "#",
  "%",
  "\$",
  "^",
  "|",
  "`",
  "~",
]).smartExpand(maxPieceSize);