toList method
Return a list containing the contents of the NSData.
Implementation
Uint8List toList() {
if (bytes.address == 0 || length == 0) {
return Uint8List(0);
} else {
return Uint8List.fromList(bytes.cast<Uint8>().asTypedList(length));
}
}