readFileBytes abstract method

Future<Uint8List> readFileBytes(
  1. String path, {
  2. int? maxBytes,
})

Reads raw file bytes as Uint8List asynchronously. When maxBytes is set, only reads up to that many bytes.

Implementation

Future<Uint8List> readFileBytes(String path, {int? maxBytes});