encodeBase64 static method

String encodeBase64(
  1. String data
)

Base64 encryption

Implementation

static String encodeBase64(String data) {
  var content = utf8.encode(data);
  var digest = base64Encode(content);
  return digest;
}