createSubscription method

NodeReference createSubscription({
  1. bool isMockLike = false,
})

Implementation

NodeReference createSubscription({bool isMockLike = false}) {
  final subscription =
      NodeReference._subscription('subscription_${subscriptions.length}');
  subscriptions.add(subscription.toReadExpr());
  if (isMockLike) {
    subscribesToMockLike = true;
  }
  return subscription;
}