defaultEmptyChecker static method
Default empty checker. It supports Iterable,Map or String. Otherwise, anything not null is considere as not empty
Implementation
static bool defaultEmptyChecker(dynamic content) {
if (content is Iterable) {
return content.isEmpty;
}
if (content is Map) {
return content.isEmpty;
}
if (content is String) {
return content.isEmpty;
}
return false;
}