mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
feat: implement generator di module
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
/// More dartdocs go here.
|
||||
library;
|
||||
|
||||
export 'injectable.dart';
|
||||
export 'src/module.dart';
|
||||
export 'src/bind.dart';
|
||||
export 'src/provide.dart';
|
||||
export 'src/singleton.dart';
|
||||
|
||||
// TODO: Export any libraries intended for clients of this package.
|
||||
|
||||
4
cherrypick_annotations/lib/src/bind.dart
Normal file
4
cherrypick_annotations/lib/src/bind.dart
Normal file
@@ -0,0 +1,4 @@
|
||||
// ignore: camel_case_types
|
||||
class Bind {
|
||||
const Bind();
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
library;
|
||||
|
||||
/// Отмечает класс как injectable для автоматической регистрации.
|
||||
class Injectable {
|
||||
const Injectable();
|
||||
// ignore: camel_case_types
|
||||
class module {
|
||||
const module();
|
||||
}
|
||||
4
cherrypick_annotations/lib/src/provide.dart
Normal file
4
cherrypick_annotations/lib/src/provide.dart
Normal file
@@ -0,0 +1,4 @@
|
||||
// ignore: camel_case_types
|
||||
class provide {
|
||||
const provide();
|
||||
}
|
||||
4
cherrypick_annotations/lib/src/singleton.dart
Normal file
4
cherrypick_annotations/lib/src/singleton.dart
Normal file
@@ -0,0 +1,4 @@
|
||||
// ignore: camel_case_types
|
||||
class singleton {
|
||||
const singleton();
|
||||
}
|
||||
Reference in New Issue
Block a user