nullValue<T> method
Throws an ArgumentError if input
is null. Returns input
otherwise.
Implementation
T nullValue<T>(T input, {String? name}) {
if (input == null) {
throw ArgumentError.notNull(name);
}
return input;
}
Throws an ArgumentError if input
is null. Returns input
otherwise.
T nullValue<T>(T input, {String? name}) {
if (input == null) {
throw ArgumentError.notNull(name);
}
return input;
}