ServiceProvider constructor

ServiceProvider({
  1. bool printDebugLogs = false,
})

Root service provider

  • printDebugLogs When ture print debug logs for service providers in debug-mode. When false will not print any logs include its sub scoped service provider. if you only want to enable service container debug logging please call ServiceContainerLogging.enableDebugLogging before service container is created and set this argument to false. To prevent duplicate log outputs, see ServiceContainerLogging

Implementation

ServiceProvider({bool printDebugLogs = false}) : _root = _ServiceProviderScope._root(printDebugLogs: printDebugLogs);