findByType

@Nullable
abstract fun <T> findByType(type: Class<T>): T(source)
@Nullable
abstract fun <T> findByType(type: TypeOf<T>): T(source)

Looks for the extension of a given type (useful to avoid casting). If none found null is returned.

Return

extension or null

Parameters

type

extension type