toList method

List<int> toList(
  1. [int offset = 0,
  2. int length = 0]
)

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);
}