Skip to content
#

Dependency injection

Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.

There are different types of dependency injection:

Here are 191 public repositories matching this topic...

SOLID Principles is a coding standard that all developers should have a clear concept for developing software in a proper way to avoid a bad design .it is used across the object-oriented design spectrum. When applied properly it makes your code more extendable, logical and easier to read.

  • Updated Mar 15, 2023
  • Dart