flutter_caffeine 1.0.0
flutter_caffeine: ^1.0.0 copied to clipboard
Flutter bindings for caffeine. Attach reactive scopes to the widget tree, read state with context.state(), and subscribe to automatic rebuilds — no StreamBuilders, no dispose boilerplate.
0.0.1 #
Initial release.
Caffeinewidget — attaches a caffeineScopeto a point in the element tree and disposes it when the element is removedcontext.state(node)— reads aStatefulorStorevalue from the nearestCaffeineancestor; subscribes to automatic rebuilds whenlisten: true(the default)context.fire(event)— dispatches an event through the nearestCaffeineancestor's scopeCaffeine.of(context)— retrieves the nearestScopefor forking child scopes- Subscription cleanup via
Finalizer— nodisposeoverrides or wrapper widgets required