downloadAsBytes method

Future<Uint8List> downloadAsBytes()

Downloads attachment as returns bytes of downloaded file.

Implementation

Future<Uint8List> downloadAsBytes() async => (await http.get(Uri.parse(this.url))).bodyBytes;