fromBase64 static method

String fromBase64(
  1. String base64String
)

Base64 解码

Implementation

static String fromBase64(String base64String) {
  // Base64 解码
  List<int> bytes = base64.decode(base64String);
  // 将字节数组转为字符串
  String decodedString = utf8.decode(bytes);
  return decodedString;
}