unRegister<T extends Object> method
Unregister the specified global shared object.
mark
--
The unique identifier of the shared object to be registered.
If there is only one shared object of the same type in the project,
it can be used to distinguish it. Otherwise, it needs to be used to distinguish it.
Implementation
void unRegister<T extends Object>({
String? mark,
}) {
final Iterable<String> keys = _recordPool.keys;
late String key = keyGet<T>(mark);
if (keys.contains(key)) {
_recordPool.remove(key);
}
}