formatMessageStatus static method
Formats the display of message status
Implementation
static String formatMessageStatus(String status) {
switch (status) {
case 'sent':
return 'Sent';
case 'delivered':
return 'Delivered';
case 'read':
return 'Read';
default:
return status;
}
}