check string is null or empty
static bool isNullOREmpty(String? str) { return (str == null || str.trim().isEmpty); }