subscribed property

  1. @override
bool subscribed
override

Implementation

@override
bool get subscribed {
  // always return false when subscription is not allowed
  if (!_subscriptionAllowed) return false;
  return super.subscribed;
}
  1. @Deprecated('use subscribe() or unsubscribe() instead')
void subscribed=(bool newValue)

Implementation

@Deprecated('use subscribe() or unsubscribe() instead')
set subscribed(bool newValue) {
  logger.fine('Setting subscribed = ${newValue}');
  newValue ? subscribe() : unsubscribe();
}