inject method

void inject(
  1. T bloc
)

Injects a bloc into this resolver

This BlocResolver will always return this injected bloc. This can be used during testing, to inject mocks.

Implementation

void inject(T bloc) => _toInject = bloc;