provide method

BloomProvider<T> provide({
  1. Key? key,
  2. required Widget child,
})

Wraps child in a BloomProvider<T> providing this reactive Bloom node.

  • child: The descendant widget subtree receiving this state.
  • key: Optional widget key.

Requires:

  • child must not be null.

Ensures:

Examples

counterBloom.provide(child: const CounterDisplay());

Implementation

BloomProvider<T> provide({Key? key, required Widget child}) =>
    BloomProvider<T>(key: key, bloom: this, child: child);