register<T> method

void register<T>(
  1. T construct()
)

Registers a new construct function for type T that will produce an object every time it is called.

Implementation

void register<T>(T Function() construct) {
  _tryRegister<T>(() => _IocDef(construct));
}