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 a worker function that will be called when the bit is first accessed. The worker function should return a FutureOr<V>. The V 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.