Checks whether a string is null or empty or not.
bool isNullOrEmpty(String? str) { return str == null || str.isEmpty; }