static bool isNullOrEmpty(Object? any) { if (any == null) return true; if (any is List) { return any.isEmpty; } if (any is String) { return any.isEmpty; } return false; }