asBlob property
HttpBlob?
get
asBlob
Implementation
HttpBlob? get asBlob {
final body = _body;
if (body is HttpBlob) {
return body;
} else if (isBlob || isByteBuffer || isBytesArray || isString) {
return createHttpBlob([body], mimeType);
} else if (isMap) {
return createHttpBlob([asString], mimeType);
}
return null;
}