close method
Implementation
Future<void> close(int id, ComBannerClosedReason reason) async {
if (_current?.id == id) {
await dismissCurrent(reason);
return;
}
_QueuedBanner? pending;
for (final item in _pending) {
if (item.id == id) {
pending = item;
break;
}
}
if (pending != null) {
_pending.remove(pending);
_complete(pending, reason);
}
}