File tree Expand file tree Collapse file tree 8 files changed +39
-11
lines changed
test/src/presenter/models Expand file tree Collapse file tree 8 files changed +39
-11
lines changed Original file line number Diff line number Diff line change 1+ ## [ 5.0.3] - 2022-06-03
2+ - Fix [ #713 ] ( https://github.com/Flutterando/modular/issues/713 )
3+ - Fix [ #676 ] ( https://github.com/Flutterando/modular/issues/676 )
4+ - Fix [ #632 ] ( https://github.com/Flutterando/modular/issues/632 )
5+
16## [ 5.0.2] - 2022-04-22
27- Fix: Parse params in RouteOutlet
38## [ 5.0.1] - 2022-04-22
Original file line number Diff line number Diff line change @@ -126,6 +126,22 @@ class AsyncBind<T extends Object> extends Bind<Future<T>>
126126 return Bind <T >((i) => bindValue,
127127 export: export, alwaysSerialized: true , onDispose: _localOnDispose);
128128 }
129+
130+ @override
131+ AsyncBind <T > copyWith (
132+ {Future <T > Function (Injector i)? factoryFunction,
133+ bool ? isSingleton,
134+ bool ? isLazy,
135+ bool ? export,
136+ bool ? isScoped,
137+ bool ? alwaysSerialized,
138+ void Function (Future <T > value)? onDispose,
139+ Function (Future <T > value)? selector}) {
140+ return AsyncBind (
141+ factoryFunction ?? this .factoryFunction,
142+ export: export ?? this .export,
143+ );
144+ }
129145}
130146
131147/// Specific instance for modular_codegen
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 : 5.0.2
3+ version : 5.0.3
44homepage : https://github.com/Flutterando/modular
55
66environment :
77 sdk : " >=2.12.0 <3.0.0"
88
99dependencies :
1010 flutter_modular_annotations : ^0.0.2
11- modular_core : " >=2.0.1 <3.0.0"
11+ modular_core : " >=2.0.3+ 1 <3.0.0"
1212 meta : " >=1.3.0 <2.0.0"
1313 flutter :
1414 sdk : flutter
1515
16- dependency_overrides :
17- modular_core :
18- path : ../modular_core
19- modular_interfaces :
20- path : ../modular_interfaces
21-
2216dev_dependencies :
2317 flutter_lints : ^1.0.4
2418 mocktail : ^0.1.4
Original file line number Diff line number Diff line change 11import 'package:flutter_modular/src/presenter/models/bind.dart' ;
22import 'package:flutter_test/flutter_test.dart' ;
3+ import 'package:modular_core/modular_core.dart' ;
34
45void main () {
56 test ('bind instance' , () {
@@ -42,4 +43,9 @@ void main() {
4243 final bind = BindInject ((i) => 'instance' );
4344 expect (bind.copyWith (), isA <Bind >());
4445 });
46+
47+ test ('copyWith asyncBind' , () async {
48+ final asyncBind = AsyncBind ((i) async => 'instance' );
49+ expect (asyncBind.copyWith (), isA <AsyncBindContract >());
50+ });
4551}
Original file line number Diff line number Diff line change 1+ ## 2.0.3+1 - 2022/06/02
2+ * feat: Added type propertie in removeBindContext
3+
14## 2.0.1 - 2022/05/12
25* Fix: Inject.get should return instance
36
Original file line number Diff line number Diff line change 11name : modular_core
22description : Smart project structure with dependency injection and route management
3- version : 2.0.1
3+ version : 2.0.3+ 1
44homepage : https://github.com/Flutterando/modular
55
66environment :
@@ -9,7 +9,7 @@ environment:
99dependencies :
1010 characters : " >=1.1.0 <2.0.0"
1111 meta : " >=1.3.0 <2.0.0"
12- modular_interfaces : " >=2.0.1 <3.0.0"
12+ modular_interfaces : " >=2.0.2 <3.0.0"
1313
1414
1515dev_dependencies :
Original file line number Diff line number Diff line change 1+ ## 2.0.2 - 2022/06/02
2+
3+ - feat: Added Type propertie in removeBindContext();
4+
15## 2.0.1 - 2022/05/12
26
37- Fix: Inject.get returns instance
Original file line number Diff line number Diff line change 11name : modular_interfaces
22description : Smart project structure with dependency injection and route management
3- version : 2.0.1
3+ version : 2.0.2
44homepage : https://github.com/Flutterando/modular
55# homepage: https://www.example.com
66
You can’t perform that action at this time.
0 commit comments