File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ class BindEmpty extends Bind<Object> {
6464class AsyncBind <T extends Object > extends Bind <Future <T >> {
6565 final Future <T > Function (Inject i) asyncInject;
6666
67- AsyncBind (this .asyncInject) : super (asyncInject);
67+ ///export bind for others modules
68+ final bool export;
69+
70+ AsyncBind (this .asyncInject, {this .export = false }) : super (asyncInject, export: export);
6871
6972 Future <T > resolveAsyncBind () async {
7073 final bind = await asyncInject (Inject ());
@@ -73,6 +76,6 @@ class AsyncBind<T extends Object> extends Bind<Future<T>> {
7376
7477 Future <Bind <T >> converToAsyncBind () async {
7578 final bindValue = await resolveAsyncBind ();
76- return Bind <T >((i) => bindValue);
79+ return Bind <T >((i) => bindValue, export : export );
7780 }
7881}
Original file line number Diff line number Diff line change 11name : flutter_modular
22description : Smart project structure with dependency injection and route management
3- version : 3.1.1
3+ version : 3.2.0
44homepage : https://github.com/Flutterando/modular
55
66environment :
You can’t perform that action at this time.
0 commit comments