SunnyInjector constructor

SunnyInjector({
  1. Container? container,
  2. InjectorInit preInit = _noop,
  3. InjectorInit postInit = _noop,
})

Implementation

SunnyInjector({
  Container? container,

  /// Runs before the main intitialization
  this.preInit = _noop,

  /// Runs after the main singleton initialization
  this.postInit = _noop,
}) : _container = container ?? Container();