ComposableStateCallbackBuilder

Implementation of StateCallbackBuilder that recursively composes itself to build a StateCallback

Constructors

Link copied to clipboard
constructor(current: StateCallback<T, R, U>)

Functions

Link copied to clipboard
open override fun build(): StateCallback<T, R, *>
Link copied to clipboard
open override fun <V> compose(stateCallback: StateCallback<T, U, V>): ComposableStateCallbackBuilder<T, R, V>

Compose the current state callback with the provided stateCallback.

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

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, U?>): StateCallbackBuilder<T, U>

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

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

Transform the current value using the given lambda.