validateNonEmptyString function
Implementation
void validateNonEmptyString(
String value, String fieldName, String functionName) {
if (value.isEmpty) {
throw ArgumentError('$fieldName should not be empty in $functionName');
}
}
void validateNonEmptyString(
String value, String fieldName, String functionName) {
if (value.isEmpty) {
throw ArgumentError('$fieldName should not be empty in $functionName');
}
}