substring method

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

Implementation

String substring(int start, [int? end]) {
  return _rope.slice(
    start: BigInt.from(start),
    end: BigInt.from(end ?? length),
  );
}