disposeSingletonsByTag abstract method Null safety

void disposeSingletonsByTag(
  1. String tag,
  2. {void onRemoved(
    1. dynamic instance
    )?}
)

Removes singleton instances by tag.
This does not remove it from the registry tree.

Implementation

void disposeSingletonsByTag(
  String tag, {
  void Function(dynamic instance)? onRemoved,
});