injectable 0.1.0 copy "injectable: ^0.1.0" to clipboard
injectable: ^0.1.0 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';

@Bind.toNamedtype(ServiceImpl1)
@Bind.toNamedtype(ServiceImpl2)
abstract class Service {}

class ServiceImpl1 extends Service {}

class ServiceImpl2 implements Service {

}

@injectable
class MyRepository {
  MyRepository(@Named.from(ServiceImpl1) Service service);
}
1166
likes
0
pub points
99%
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

flutter

More

Packages that depend on injectable