feat: implement generator di module

This commit is contained in:
Sergey Penkovsky
2025-05-17 00:34:56 +03:00
parent b906e927c3
commit d1e726aaec
18 changed files with 118 additions and 129 deletions

View File

@@ -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.

View File

@@ -0,0 +1,4 @@
// ignore: camel_case_types
class Bind {
const Bind();
}

View File

@@ -1,6 +1,5 @@
library;
/// Отмечает класс как injectable для автоматической регистрации.
class Injectable {
const Injectable();
// ignore: camel_case_types
class module {
const module();
}

View File

@@ -0,0 +1,4 @@
// ignore: camel_case_types
class provide {
const provide();
}

View File

@@ -0,0 +1,4 @@
// ignore: camel_case_types
class singleton {
const singleton();
}