slice method

void slice({
  1. int start = 0,
  2. int? end,
})

Row-slice instance in-place.

Implementation

void slice({int start = 0, int? end}) {
  if (start != 0) removeRange(0, start);
  if (end != null) removeRange(end, length);
}