injectable 1.0.4

Dart native js
Flutter Android iOS web

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);
}
217
likes
100
pub points
97%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

milad.akarie@gmail.com

License

MIT (LICENSE)

Dependencies

get_it

More

Packages that depend on injectable