static bool isBase64(String text) { try { var decoded = base64Decode(text); return true; } catch (_) { return false; } }