firstScopeIsInstanceOrNull

inline fun <T : Scope> firstScopeIsInstanceOrNull(searchScope: Scope? = currentScope): T?

Tries to find the first scope that is an instance of the scope type T. Calls firstScopeOrNull internally.

Parameters

searchScope

the scope to start the search in