encodeUtf8 static method

String encodeUtf8(
  1. String str
)

Encodes a String into a Base64url Encoding value.

The str is encoded using UTF-8, and then that sequence of bytes are encoded using Base64url Encoding.

Implementation

static String encodeUtf8(String str) => encode(utf8.encode(str));