isNullOrEmpty function
Implementation
bool isNullOrEmpty(dynamic s) {
try {
if (s == null || s == 'null') return true;
if (s is String) {
s = s.trim();
if (s == '') return true;
}
if (s is List) return (s.isEmpty);
} catch (e) {
return true;
}
return false;
}