subscriptions property Null safety

SubscriptionSet subscriptions

The active SubscriptionSet for this Realm

Implementation

SubscriptionSet get subscriptions {
  if (config is! FlexibleSyncConfiguration) {
    throw RealmError('subscriptions is only valid on Realms opened with a FlexibleSyncConfiguration');
  }

  _subscriptions ??= SubscriptionSetInternal.create(this, realmCore.getSubscriptions(this));
  realmCore.refreshSubscriptionSet(_subscriptions!);
  return _subscriptions!;
}