isStringEmpty function
Checks if a nullable string is null or empty.
Use String? extension isNullOrEmpty for cleaner code.
Example:
isStringEmpty(null); // true
isStringEmpty(''); // true
isStringEmpty('abc'); // false
Implementation
bool isStringEmpty(String? value) => value == null || value.isEmpty;