toByteList method

Future<List<int>> toByteList()

Converts the body of this Content to a List of bytes asynchronously.

Implementation

Future<List<int>> toByteList() async =>
    body.expand<int>((element) => element).toList();