assertInit<T> function

T assertInit<T>(
  1. T? i
)

check if a service has been initialized. If not, throw an error.

Implementation

T assertInit<T>(T? i) => i ?? (throw ElbeError.serviceNotInitialized("$T"));