getOrThrow method
Returns this value if it is not null, otherwise throws a JetException
.
Implementation
T getOrThrow([String? message]) {
if (isNull) {
throw InvalidArgumentException(message ?? "");
}
return this!;
}
Returns this value if it is not null, otherwise throws a JetException
.
T getOrThrow([String? message]) {
if (isNull) {
throw InvalidArgumentException(message ?? "");
}
return this!;
}