confirmDialog method
Implementation
confirmDialog(BuildContext context, List<DialogChoice<T>>? selectedChoices) {
if ((selectedChoices ?? []).isNotEmpty) {
Navigator.of(context)
.pop(selectedChoices!.map<T>((e) => e.value).toList());
}
}