bit/bit/bit_simple library
Typedefs
-
SimpleBit<
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. -
SimpleBitBuilder<
D, B extends SimpleBit< D> > = MapMsgBitBuilder<D, B>