showChatNotification static method

Future<void> showChatNotification(
  1. Map<String, dynamic> data
)

Shows Firebase chat notification (Only Android).

Implementation

static Future<void> showChatNotification(Map<String, dynamic> data) async {
  if (Platform.isAndroid) {
    ChatNotification chatNotification = ChatNotification(data['ticket_id'],
        data['user_id'], data['ticket_title'], data['message']);
    await _channel.invokeMethod('showChatNotification',
        {'chatNotification': chatNotification.toMap()});
  }
}