removeProvider

open fun <Type> removeProvider(ofClass: Class<Type>): () -> Type?

Removes provider of instances of the selected type. This method is internally used by inlined removal methods.

Return

removed provider instance bind to the selected class if any was registered or null.

Parameters

ofClass

type of objects provided by the selected provider.

See also