get method

Implementation

Future<List<QBSubscription?>> get() async {
  List<Object?> list = await _pushModule.invokeMethod(GET_METHOD, null);

  List<QBSubscription?> subscriptionList = [];

  for (final item in list) {
    QBSubscription? subscription = QBSubscriptionMapper.mapToQBSubscription(
        item as Map<dynamic, dynamic>);
    subscriptionList.add(subscription);
  }

  return subscriptionList;
}