mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
feat: generate instance async code
This commit is contained in:
@@ -12,6 +12,14 @@ abstract class AppModule extends Module {
|
||||
@instance()
|
||||
int timeout() => 1000;
|
||||
|
||||
@instance()
|
||||
@named('Delay')
|
||||
Future<int> delay() => Future.value(1000);
|
||||
|
||||
@instance()
|
||||
@named('Size')
|
||||
Future<int> size() async => 10;
|
||||
|
||||
@instance()
|
||||
@named('baseUrl')
|
||||
String baseUrl() => "https://google.com";
|
||||
|
||||
Reference in New Issue
Block a user