description

# split static method

Iterable<String> split(

1. String lines, [
2. int start = 0,
3. int? end

])

Split `lines` into individual lines.

If `start` and `end` are provided, only split the contents of `lines.substring(start, end)`. The `start` and `end` values must specify a valid sub-range of `lines` (`0 <= start <= end <= lines.length`).

## Implementation

    static Iterable<String> split(String lines, [int start = 0, int? end]) {
      end = RangeError.checkValidRange(start, end, lines.length);
      return _LineSplitIterable(lines, start, end);
    }