isNullOrEmpty static method
Takes in a String/List and returns true if it is null, blank or empty
Implementation
static 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;
}