listenCollection method

  1. @override
Future<List<StreamSubscription>> listenCollection(
  1. ModelAdapterCollectionQuery query
)
override

Pass query to monitor the collection.

When monitoring is started, StreamSubscription is passed, so keep it.

All retained StreamSubscription should be canceled when the object is destroyed or before executing this method again.

queryを渡してコレクションの監視を行います。

監視が開始された場合、StreamSubscriptionが渡されるので、それを保持しておいてください。

保持したStreamSubscriptionはオブジェクトの破棄時、または再度このメソッドを実行する前にすべてキャンセルしてください。

Implementation

@override
Future<List<StreamSubscription>> listenCollection(
  ModelAdapterCollectionQuery query,
) {
  _assert();
  throw UnsupportedError("This adapter cannot listen.");
}