cancel method
Cancels every onDisconnect write registered at this location and below it. Throws an
ArgumentError under .info, as set does.
Implementation
Future<void> cancel() {
final Path path = reference.spec.path;
validateWritablePath('OnDisconnect.cancel', path);
return reference.database.write(
(Repo repo, WriteCompletion done) =>
repo.onDisconnectCancel(path, onComplete: done),
);
}