mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 05:25:19 +00:00
start implement generator code
This commit is contained in:
14
examples/client_app/lib/foo.dart
Normal file
14
examples/client_app/lib/foo.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:cherrypick_annotations/cherrypick_annotations.dart';
|
||||
|
||||
part 'foo.cherrypick_injectable.g.dart';
|
||||
|
||||
@Injectable()
|
||||
class Foo {
|
||||
late final String field;
|
||||
}
|
||||
|
||||
// где-то в main:
|
||||
void iniFoo() {
|
||||
$initCherrypickGenerated();
|
||||
// ... остальной код
|
||||
}
|
||||
Reference in New Issue
Block a user