check if the string str is null
str
bool isNull(String? str) { return str == null || str.length == 0; }