requiredService

inline fun <T> requiredService(): T

Retrieves a required service of the specified type using Services.serviceWithFallback. If the service is not available, it throws an Error.

Return

The service instance of the specified type T if available.

Throws

if the service of type T is not available.