fetchMessages method

Future<List<Message>> fetchMessages()

Implementation

Future<List<Message>> fetchMessages() async {
  List<dynamic>? messages =
      await _channel.invokeMethod('inbox.fetchMessages');
  if (messages == null) {
    throw TypeError();
  }
  return _mapper.map(messages);
}