checkNotNull<@Since("2.8") T> static method
- @Since("2.1")
- T? argument, [
- String? name
Throws if argument is null.
If name is supplied, it is used as the parameter name
in the error message.
Returns the argument if it is not null.
Implementation
@Since("2.1")
static T checkNotNull<@Since("2.8") T>(T? argument, [String? name]) =>
argument ?? (throw ArgumentError.notNull(name));