onInteractionGoalCompleted method
Implementation
@override
void onInteractionGoalCompleted(InteractionReceipt receipt) {
debugPrint("interaction completed $receipt");
if (receipt.sender.uid == loggedInUser?.uid) {
for (int i = 0; i < list.length; i++) {
if (list[i].id == receipt.messageId) {
try {
(list[i] as InteractiveMessage).interactions = receipt.interactions;
} on Exception {
debugPrint("error in converting interactin receipt");
}
}
}
update();
}
}