mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
feat: implement async mode for instance/provide annotations
This commit is contained in:
@@ -24,6 +24,14 @@ abstract class AppModule extends Module {
|
||||
@named('baseUrl')
|
||||
String baseUrl() => "https://google.com";
|
||||
|
||||
@provide()
|
||||
@named('Delay1')
|
||||
Future<int> delay1() => Future.value(1000);
|
||||
|
||||
@provide()
|
||||
@named('Size1')
|
||||
Future<int> size1() async => 10;
|
||||
|
||||
@provide()
|
||||
@singleton()
|
||||
@named('dio')
|
||||
|
||||
Reference in New Issue
Block a user