checkNotEmpty static method
Implementation
static String checkNotEmpty(String string, {Object? errorMessage}) {
if (string.length == 0) {
throw ArgumentError(
_resolveMessage(errorMessage, "Given String is empty or null."));
}
return string;
}