substring method

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

Returns a substring of this StringBuilder.

start the starting index end the ending index (optional)

Implementation

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