substring method

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

Implementation

String substring(int start, [int? end]) {
  _initBuffer();
  return _buffer!.substring(start, end);
}