removeGlobalSingletonService method

  1. @override
String removeGlobalSingletonService(
  1. String service
)
override

Returns a message that the following global singleton service should be removed from injector or providers.

Implementation

@override
String removeGlobalSingletonService(String service) =>
    '"$service" is an app-wide, singleton service provided by the '
    'framework that cannot be overridden or manually provided.\n'
    '\n'
    'If you are providing this service to fix a missing provider error, you '
    "likely have created an injector that is disconnected from the app's "
    'injector hierarchy. This can occur when instantiating an injector and '
    'you omit the parent injector argument, or explicitly configure an empty '
    'parent injector. Please check your injector constructors to make sure '
    "the current context's injector is passed as the parent.";