What is BlocListener?

BlocListener is a Flutter widget which takes a BlocWidgetListener and an optional bloc and invokes the listener in response to state changes in the bloc . It should be used for functionality that needs to occur once per state change such as navigation, showing a SnackBar , showing a Dialog , etc…

Read more

Is dependency injection an overkill?

If you have a really small project with 12 classes, then a DI framework is almost certainly overkill . As a rule of thumb, the point where it becomes truly useful is when you find yourself repeatedly writing code that wires up object graphs with multiple dependencies and have to think about where to put that code.

Read more

What is dependency injection Dart?

Dependency Injection is a way of making the dependencies of an object available via another object , and these dependencies are usually known as services. These services can be blocks of code, containing different functionalities that can be easily reused in different parts of your project.

Read more