readFileAsByte static method

Future<Uint8List> readFileAsByte(
  1. String filePath
)

Implementation

static Future<Uint8List> readFileAsByte(String filePath) async {
  Uri myUri = Uri.parse(filePath);
  File file = File.fromUri(myUri);
  Uint8List bytes = await file.readAsBytes();
  return bytes;
}