getOrNull

inline fun <T : Any> getOrNull(): T?

Get a registered service by type, else null

Return

The instance of the service

Parameters

T
  • Type of service, usually an interface