bytes method

Future<Uint8List> bytes()

Implementation

Future<Uint8List> bytes() {
  return switch (body) {
    final Body body => body.bytes(),
    null => Future<Uint8List>.value(Uint8List(0)),
  };
}