readAsBytes method Null safety

Future<List<int>> readAsBytes()

Transform the entire FormData contents as a list of bytes asynchronously.

Implementation

Future<List<int>> readAsBytes() {
  return Future(() => finalize().reduce((a, b) => [...a, ...b]));
}