slice method

String slice(
  1. int start,
  2. int end
)

Implementation

String slice(int start, int end) {
  final safeStart = start.clamp(0, length);
  final safeEnd = end.clamp(safeStart, length);
  return _root.slice(safeStart, safeEnd);
}