Change

data class Change<S : Any>(val currentState: S, val nextState: S)

Represents a state transition: the state before and after a single emit call.

Produced by every Cubit.emit and Bloc.emit invocation and forwarded to BlocObserver.onChange and the emitter's own Cubit.onChange / Bloc.onChange hook.

Constructors

Link copied to clipboard
constructor(currentState: S, nextState: S)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String