decodeModifiedBase64 static method
decodes the given modifiedBase64
string to standard utf-16 text
Implementation
static String decodeModifiedBase64(String modifiedBase64) {
var bytes = base64Decode(base64.normalize(modifiedBase64));
var buffer = StringBuffer();
for (var i = 0; i < bytes.length; i = i + 2) {
buffer.writeCharCode(bytes[i] << 8 | bytes[i + 1]);
}
return buffer.toString();
}