Bloobit<TState> constructor
Bloobit<TState> (
- TState initialState, {
- void onSetState(
- TState
Creates a Bloobit with the initial state.
Implementation
Bloobit(this.initialState, {void Function(TState)? onSetState})
: _state = initialState,
onSetState = onSetState ??
((s)
//ignore: no-empty-block
{});