size property

int get size

Implementation

int get size {
  final body = _body;

  if (body is String) {
    return body.length;
  } else if (body is ByteBuffer) {
    return body.lengthInBytes;
  } else if (body is List<int>) {
    return body.length;
  } else if (isMap) {
    return asString!.length;
  } else if (isBlob) {
    return asBlob!.size();
  } else {
    return 0;
  }
}