cancel method
Implementation
Future<void> cancel(CancelNotification notification) async {
_requireReady(AcpV1Methods.session_cancel);
final route = _notificationRoute<CancelNotification>(
AcpV1Methods.session_cancel,
);
try {
await _peer.sendNotification(
route.method,
route.encodeParameters(notification),
);
} finally {
_resolvePendingPermissionsCancelled();
}
}