We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d025ce commit 1eba374Copy full SHA for 1eba374
lib/src/core/content.dart
@@ -30,6 +30,10 @@ class Content {
30
}
31
return buffer.buffer;
32
33
+
34
+ /// Converts the [body] of this [Content] to a [List] of bytes asynchronously.
35
+ Future<List<int>> toByteList() async =>
36
+ body.expand<int>((element) => element).toList();
37
38
39
/// [Content] specific for discovery.
0 commit comments