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

outdated

Injectable is a convenient code generator for get_it. Inspired by Angular DI, Guice DI and inject.dart.

example/README.md

Example #


import 'package:injectable/injectable_annotations.dart';

abstract class Service {}

@named
@prod
@Injectable(as: Service)
class ServiceImpl1 extends Service {}


@Injectable(as: Service, env: [Envirnoment.dev])
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. Inspired by Angular DI, Guice DI and inject.dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, glob, injectable, path, source_gen

More

Packages that depend on injectable_generator