substring method

String substring(
  1. int start, [
  2. int? end
])

Substrings the source and returns a String.

Implementation

String substring(int start, [int? end]) => source.substring(start, end);