String bToA(String str) { final List<int> bytes = utf8.encode(str); final String base64Str = base64.encode(bytes); return base64Str; }