readAsBytesSync method

  1. @override
Uint8List readAsBytesSync()
override

Reads the entire asset synchronously as a list of bytes.

Returns a Uint8List containing the bytes of the asset.

Implementation

@override
Uint8List readAsBytesSync() {
  return file.readAsBytesSync();
}