readAsBytesSync method
Synchronously reads the entire file contents as a list of bytes.
Throws a FileSystemException if the operation fails.
Implementation
@override
Uint8List readAsBytesSync() {
return Uint8List.fromList(window.localStorage[uri.toString()]?.split('-').map(int.parse).toList() ?? []);
}