readFile method

  1. @override
Future<Uint8List> readFile(
  1. String filePath
)
override

Reads entire file into memory as Uint8List

Implementation

@override
Future<Uint8List> readFile(String filePath) async {
  final file = await _getFile(filePath);
  if (file == null) {
    throw Exception('No file selected or file not found');
  }

  return await _blobToBytes(file);
}