getByteList method
Implementation
Uint8List getByteList(dynamic file) {
if (file is Uint8List) {
return file;
}
if (file is File) {
return file.readAsBytesSync();
}
throw FileTypeError();
}
Uint8List getByteList(dynamic file) {
if (file is Uint8List) {
return file;
}
if (file is File) {
return file.readAsBytesSync();
}
throw FileTypeError();
}