multiSplit method

List<String> multiSplit(
  1. Iterable<String> delimeters
)

Split a string by multiples tokens

Implementation

List<String> multiSplit(Iterable<String> delimeters) => delimeters.isEmpty
    ? [this]
    : split(RegExp(delimeters.map(RegExp.escape).join('|')));