getOrNull

fun <T : Flag> Set<Flag>.getOrNull(flagType: KClass<T>): T?(source)

Obtains a specific Flag type from a set of flags.

Return

The Flag of the specified type, or null if not found.

Parameters

flagType

The type of Flag to obtain.