getBase64Decoder function
Returns a decoder for base-64 strings.
This decoder deserializes base-64 encoded strings from a byte array.
For more details, see getBase64Codec.
Implementation
VariableSizeDecoder<String> getBase64Decoder() {
return VariableSizeDecoder<String>(
read: (bytes, offset) {
final slice = bytes.sublist(offset);
final value = convert.base64.encode(slice);
return (value, bytes.length);
},
);
}