Bloobit<TState> constructor

Bloobit<TState>(
  1. TState initialState, {
  2. void onSetState(
    1. 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
              {});