EntitySubscription<T extends Identifiable<String>> constructor

EntitySubscription<T extends Identifiable<String>>(
  1. String instanceId,
  2. T decodeT(
    1. Map<String, dynamic>
    )
)

Implementation

factory EntitySubscription(String instanceId, T Function(Map<String, dynamic>) decodeT) {
  final subscription = EntitySubscription._(instanceId, decodeT);
  _finalizer.attach(subscription, instanceId, detach: subscription);
  return subscription;
}