addProvider

inline fun <T : Any> Services.addProvider(condition: Boolean, type: KClass<T>, crossinline providerCreator: () -> T)(source)

当满足条件 condition 时,添加 providerCreator