provide method
Wraps child in a BloomProvider<T> providing this reactive Bloom node.
child: The descendant widget subtree receiving this state.key: Optional widget key.
Requires:
childmust not be null.
Ensures:
- Returns a BloomProvider<T> embedding this reactive Bloom node.
Examples
counterBloom.provide(child: const CounterDisplay());
Implementation
BloomProvider<T> provide({Key? key, required Widget child}) =>
BloomProvider<T>(key: key, bloom: this, child: child);