toList method

Uint8List toList(
  1. int length
)

Implementation

Uint8List toList(int length) {
  final builder = BytesBuilder();
  for (var i = 0; i < length; i++) {
    builder.addByte(this[i]);
  }
  return builder.takeBytes();
}