base64_encode static method
Implementation
static String base64_encode(Object? v) {
if (v == null || (v is String && v.isEmpty)) return "";
List<int> value = json.encode(v).codeUnits;
final stringChars = String.fromCharCodes(value);
final bytes = utf8.encode(stringChars);
return base64Encode(bytes);
}