bit/bit/bit_simple library
Typedefs
-
PlainBitBuilder<
D, B extends PlainBitControl< D> > = MapMsgBitBuilder<D, B> -
PlainBitControl<
D> = MapMsgBitControl< D> -
defines a simple
BitControl
. This allows you to manage global state. Provide aworker
function that will be called when the bit is first accessed. Theworker
function should return aFutureOr<V>
. TheV
type is the type of the data that the bit will hold. The Bit will automatically also have a loading state and an error state.