doOnUnregistered method
Implementation of org.unifiedpush.Connector2.Unregistered()
Implementation
Future<DBusMethodResponse> doOnUnregistered(String instance) async {
final onUnregistered = _onUnregistered;
if (onUnregistered == null) return _dbusSuccess;
storage.keys.remove(instance);
final regLeft = await storage.registrations.remove(instance);
if (!regLeft) {
storage.distrib.remove();
}
_onUnregistered?.call(instance);
return DBusMethodSuccessResponse();
}