size property

int size

Implementation

int get size {
  if (isString) {
    return (_body as String).length;
  } else if (isMap) {
    return asString!.length;
  } else if (isByteBuffer) {
    var bytes = _body as ByteBuffer;
    return bytes.lengthInBytes;
  } else if (isBytesArray) {
    var a = _body as List<int>;
    return a.length;
  } else if (isBlob) {
    return asBlob!.size();
  } else {
    return 0;
  }
}