assertNotNull<T> function

T assertNotNull<T>(
  1. T value
)

Implementation

T assertNotNull<T>(T value) =>
    value ??
    nullPointer(
        "Expected not-null value of type ${T.toString()}, but got null");