bodyAsBytes property

List<int> get bodyAsBytes

Implementation

core.List<core.int> get bodyAsBytes => convert.base64.decode(body!);
set bodyAsBytes (List<int> bytes_)

Implementation

set bodyAsBytes(core.List<core.int> bytes_) {
  body =
      convert.base64.encode(bytes_).replaceAll('/', '_').replaceAll('+', '-');
}