dvWebPushBase64Decode function

Uint8List dvWebPushBase64Decode(
  1. String value
)

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));
}