String viewToString(Object v) { if (v is String) return v; if (v is View) return v.content; return v.toString(); }