boolIsNotEmpty static method
校验内容是否为空
Implementation
static bool boolIsNotEmpty(dynamic val) {
if (val is String) {
return val.isNotEmpty;
} else if (val is List) {
return val.isNotEmpty;
} else if (val is bool) {
return true;
} else if (val == null) {
return false;
}
return true;
}