fetchInbox method

Implementation

Future<List<NotificareInboxItem>> fetchInbox() async {
  List<dynamic>? response =
      await _methodChannel.invokeListMethod('fetchInbox');
  return response!
      .map((value) => NotificareInboxItem.fromJson(value))
      .toList();
}