subscriptions property
SubscriptionSet
get
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');
}
var result = _subscriptions?.target;
if (result == null || result.handle.released) {
result = SubscriptionSetInternal.create(this, realmCore.getSubscriptions(this));
realmCore.refreshSubscriptionSet(result);
_subscriptions = WeakReference(result);
}
return result;
}