assertNotNull<T extends Any, R> function
Asserts that the actual value is not null, with an optional message.
Implementation
T assertNotNull<T extends Any, R>(
T? actual, {
String? message,
}) {
return actual as T;
}