BitControl<M, V, L> constructor
BitControl<M, V, L> (})
Implementation
BitControl(this._bit,
{this.map, M? initial, bool lazy = true, bool history = true})
: assert(M == V || map != null,
"BitControl: Add a map function or make sure M = V"),
_history = history ? [] : null,
state = initial != null
? BitState.data(initial)
: BitState<M, L>.loading(null) {
if (!lazy) _init();
}