cancelPending method
Rút câu id khỏi pending trước khi nó được gửi. false nếu không còn
trong hàng (đã gửi, hoặc đã rút).
Implementation
bool cancelPending(String id) {
final i = _pending.indexWhere((p) => p.id == id);
if (i < 0) return false;
final entry = _pending.removeAt(i);
entry.settled.complete();
notifyListeners();
return true;
}