readAsBytes_ method
Implementation
FutureOr<Uint8List?> readAsBytes_() async {
locks[clean(path)] ??= Lock();
return locks[clean(path)]?.synchronized(() async {
final file = File(clean(path));
if (await file.exists_()) {
return await file.readAsBytes();
}
return null;
});
}