1 thought on “File.readAsBytes should return Uint8List

  1. Here’s the use case: I’m reviewing code that defines a new API for comparing binary images as bytes. The API currently takes List<int> for each image’s bytes, and in my review, I stated that they should take Uint8List instead. However, if they do that, then callers will have to take the results of File.reasdAsBytes and then call new Uint8List.fromList(bytes) because they can’t assume that they already have a Uint8List. They should be able to know that they’re receiving a Uint8List from File.reasAsBytes

Comments are closed.