decodeUtf8 static method

String decodeUtf8(
  1. String encoded
)

Decodes a Base64url Encoding value into a String.

The encoded string is decoded as a Base64url Encoding, and then those sequence of bytes are interpreted as a UTF-8 encoded string.

Throws FormatException if it is not Base64url Encoding or does not contain a UTF-8 encoded string.

Implementation

static String decodeUtf8(String encoded) => utf8.decode(decode(encoded));