Pergunta de entrevista da empresa Superformula

What is the advantage of using Dependency injection? What is the difference between stateless and stateful widget?