v7.0.1
📦 Published on pub.dev: https://pub.dev/packages/flutter_modular/versions/7.0.1
Page-scoped BLoC/Cubit support
Scoped.addStreamable<T>(ctor, (t) => t.stream, (t) => t.close())— exposes the object itself viacontext.watch<T>()(read its synchronousstate, call its methods) while rebuilds are driven by its stream. flutter_modular keeps no dependency on theblocpackage (stream/close are caller callbacks). See the docs for a suggestedaddBlocextension covering both BLoC and Cubit.addListenable<T>(ctor, (t) => t.listenable, (t) => t.dispose())— for objects whose reactivity is aListenableproperty.
Simpler non-reactive registration
add<T>(ctor)— non-reactive page-scoped object, readable viacontext.read/watch, disposed on unmount when it implementsDisposable. Breaking: replacesaddDisposable(removed; theDisposableinterface is retained).
Internals
addChangeNotifierreexpressed overaddListenable;watch/read/Consumer/Selectornow accept anyObject(not justListenable), so a non-Listenablereactive object can be exposed. Fully backward compatible.
Full Changelog: https://github.com/Flutterando/modular/blob/master/CHANGELOG.md