mapBinary static method
dynamic
mapBinary(
- dynamic data,
- dynamic binaryType
Implementation
static mapBinary(data, binaryType) {
final isBuffer = data is ByteBuffer;
if (binaryType == 'arraybuffer') {
return isBuffer ? Uint8List.fromList(data) : data;
}
return data;
}