getLastMessage method
Retrieves last message received
Implementation
NearbyMessage? getLastMessage() {
hasNewMessages = false;
try {
return messages.last;
} catch (_) {
return null;
}
}
Retrieves last message received
NearbyMessage? getLastMessage() {
hasNewMessages = false;
try {
return messages.last;
} catch (_) {
return null;
}
}