isNullOrBlank function

bool isNullOrBlank(
  1. dynamic val
)

Implementation

bool isNullOrBlank(dynamic val) {
  if (val is List) {
    if (val.isEmpty) return true;
    return false;
  } else {
    if (val == null || val == '' || val.toString().isEmpty) return true;
    return false;
  }
}