toList method
Implementation
List<int> toList([int offset = 0, int length = 0]) {
if (buffer is Uint8List) {
return toUint8List(offset, length);
}
final s = start + offset + offset;
final e = (length <= 0) ? end : s + length;
return buffer.sublist(s, e);
}