dvWebPushBase64Decode function
Decodes the unpadded base64url the Web Push APIs use throughout.
Implementation
Uint8List dvWebPushBase64Decode(String value) {
final padding = (4 - value.length % 4) % 4;
return base64Url.decode(value + ('=' * padding));
}