add

fun <I : T> add(kClass: KClass<I>, handler: StatesHandler<I, T>)(source)
fun <I : T> add(filter: suspend (state: State) -> Boolean, handler: StatesHandler<I, T>)(source)