injectable_generator 0.2.2 copy "injectable_generator: ^0.2.2" to clipboard
injectable_generator: ^0.2.2 copied to clipboard

outdated

Injectable is a convenient code generator for [get_it](https://pub.dev/packages/get_it). Inspired by Angular DI, Guice DI and inject.dart.

example/README.md

Example #


import 'package:injectable/injectable_annotations.dart';

abstract class Service {}

@RegisterAs(Service, env: 'dev')
@injectable
class ServiceImpl1 extends Service {}

@RegisterAs(Service, env: 'prod')
@injectable
class ServiceImpl2 implements Service {

}

@injectable
class MyRepository {
  MyRepository(@Named.from(ServiceImpl1) Service service);
}
112
likes
0
pub points
97%
popularity

Publisher

verified publishercodeness.ly

Injectable is a convenient code generator for [get_it](https://pub.dev/packages/get_it). Inspired by Angular DI, Guice DI and inject.dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, glob, injectable, source_gen

More

Packages that depend on injectable_generator