Koin.dart

Build Status codecov

A pragmatic lightweight dependency injection framework. This is a port of Koin for Dart projects.

ExtensionsPub
koin_testpub package
koin_flutterpub package

Warning

This port does not have all the koin features implemented yet, and what it already has is not fully tested. I do not recommend using it yet.

Get started

Add dependency

dependencies:
  koin: ^[version]

Features

  • Pragmatic
  • Modules
  • Scopes
  • Singleton definition
  • Factory definition
  • Scoped definition
  • Support to multiple bindings
  • Support to named definition
  • Easy testing
  • Lazy inject
  • Logging
  • Support to injection parameters

Libraries

koin