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, handle.subscriptions);
result.handle.refresh();
_subscriptions = WeakReference(result);
}
return result;
}