Returns true if str is null or empty.
true
str
null
bool isNullOrEmpty(String? str) => str == null || str.isEmpty;