getLastCustomMessage static method

String getLastCustomMessage(
  1. Conversation conversation,
  2. BuildContext context
)

Implementation

static String getLastCustomMessage(
    Conversation conversation, BuildContext context) {
  CustomMessage customMessage = conversation.lastMessage as CustomMessage;
  String messageType = customMessage.type;
  String subtitle = '';

  switch (messageType) {
    default:
      subtitle = messageType;
      break;
  }
  return subtitle;
}