messages property

Future<List<InboxMessage>> get messages

Retrieves the current list of inbox messages.

Returns a Future that resolves to a List of InboxMessage objects.

Implementation

Future<List<InboxMessage>> get messages async {
  List inboxMessages =
      await (_module.channel.invokeMethod("messageCenter#getMessages"));
  return inboxMessages.map((dynamic payload) {
    return InboxMessage.fromJson(payload);
  }).toList();
}