padPasetoBase64 function
Pads a base64 encoding with underscores.
Implementation
String padPasetoBase64(String rawBase64) {
return (rawBase64.length % 4 > 0)
? rawBase64 + List.filled(4 - (rawBase64.length % 4), '_').join()
: rawBase64;
}