StateCallbackBuilder

A builder for composing StateCallbacks.

Unlocks the DSLs for creating and composing state callbacks.

Inheritors

Functions

Link copied to clipboard
abstract fun <U> compose(stateCallback: StateCallback<T, R, U>): StateCallbackBuilder<T, U>

Compose the current state callback with the provided stateCallback.

Link copied to clipboard
open infix fun storeIn(argName: NodeParameterKey<T, R>): StateCallbackBuilder<T, R>

Signals that the expectation should store its result using the given argument key.

open infix fun storeIn(rawArg: RawKey)

Signals that the expectation should store its result using the given raw key.

open infix fun storeIn(property: KProperty1<T, R?>): StateCallbackBuilder<T, R>

Signals that the expectation should store its result using the given property.

Link copied to clipboard
open infix fun <V> transform(transformer: (R) -> V): StateCallbackBuilder<T, V>

Transform the current value using the given lambda.