disposeSingleton<T extends Object> static method

  1. @Deprecated('Use EasyModule.disposeSingleton instead')
T? disposeSingleton<T extends Object>(
  1. BuildContext context
)
override

Disposes a specific singleton of type T from the module.

This method allows you to dispose of a single dependency instead of the entire module. It will remove the dependency from the injector and call its dispose method if it's disposable.

Example:

Module.disposeSingleton<MyService>(context);

Implementation

@Deprecated('Use EasyModule.disposeSingleton instead')
static T? disposeSingleton<T extends Object>(BuildContext context) =>
    EasyModule.disposeSingleton<T>(context);