isNullOrEmpty static method
Implementation
static bool isNullOrEmpty(String? value,
{bool considerWhiteSpaceAsEmpty = false}) {
if (considerWhiteSpaceAsEmpty) {
return value == null || _emptyRegex.hasMatch(value);
}
return value?.isEmpty ?? true;
}