loadCachedMessages static method

Future<List<InboxMessage>> loadCachedMessages()

Implementation

static Future<List<InboxMessage>> loadCachedMessages() async {
  List<Object?> inboxMessages = await _channel.invokeMethod("loadCachedMessages");
  List<InboxMessage> inboxMessageList = [];
  for (final Object? messageJson in inboxMessages) {
    inboxMessageList.add(InboxMessage.fromJson(jsonDecode(messageJson.toString())));
  }
  return inboxMessageList;
}