true when the registration was successfully detached.SharedRegistration.detach
bool detach() @safeDetach this registration from its source hap.
Detach is idempotent: the first successful call returns true, subsequent calls return false. Detaching after detachAll or after a moved-from state also returns false. The handler list is copied first when a dispatch is in flight.