collectionProvider method

  1. @override
ModelProvider<RuntimeDynamicCollectionModel> collectionProvider(
  1. String path
)
override

Performs the process of loading a document.

Usually, you specify a method that can be executed only the first time, such as loadOnce or listen. Gets the provider of the Collection.

In path, enter the path where you want to retrieve the collection.

Implementation

@override
ModelProvider<RuntimeDynamicCollectionModel> collectionProvider(String path) {
  path = path.trimString("/");
  return runtimeCollectionProvider(path);
}