flutter_simple_dependency_injection 0.0.3 copy "flutter_simple_dependency_injection: ^0.0.3" to clipboard
flutter_simple_dependency_injection: ^0.0.3 copied to clipboard

outdatedDart 1 only

A super simple dependency injection implementation for flutter that behaviours like any normal IOC container and does not rely on mirrors

[0.0.3] - 01/07/2018. #

  • Improved injector interface using generic types instead of a passed in a type to key an object factory

The new api to map and get a type instance

    // the new api
    final injector = Injector.getInstance();
    injector.map<SomeType>((i) => new SomeType())
    final instance = injector.get<SomeType>();

The old api to map and get a type instance

    // the old api
    final injector = Injector.getInstance();
    injector.map(SomeType, (i) => new SomeType())
    final instance = injector.get<SomeType>(SomeType);

[0.0.2] - 28/06/2018. #

  • Fixed up linting and file formats

[0.0.1] - 28/06/2018. #

  • Initial release
71
likes
0
pub points
91%
popularity

Publisher

unverified uploader

A super simple dependency injection implementation for flutter that behaviours like any normal IOC container and does not rely on mirrors

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_simple_dependency_injection