register<TClass> method

  1. @Deprecated("registerImplicit is faster as it does not need you to specify the type of class you're registering. This is read from the callback function 'initializer' you provide")
dynamic register<TClass>(
  1. dynamic initializer()
)

Implementation

@Deprecated("registerImplicit is faster as it does not need you to specify the type of class you're registering. This is read from the callback function 'initializer' you provide")
register<TClass>(dynamic Function() initializer) {
  _registry[TClass] = initializer;
}