add<T> static method

void add<T>(
  1. BlocWithArgBuilder<T> builder
)

Adds a blocs to internal resolver

Takes a builder to build a Bloc of type T

Implementation

static void add<T>(BlocWithArgBuilder<T> builder) {
  assert(T != dynamic, 'Type must be defined');
  assert(!_blocs.containsKey(T));
  _blocs[T] = builder;
}