validateNotNullOrUndefined function
Implementation
void validateNotNullOrUndefined(
dynamic value, String fieldName, String functionName) {
if (value == null) {
throw ArgumentError(
'$fieldName should not be null or undefined in $functionName');
}
}