getModelsSharedBy<T extends AtCollectionModel> static method

Future<List<T>> getModelsSharedBy<T extends AtCollectionModel>(
  1. String atSign
)

Returns list of AtCollectionModels that are shared by the given atSign atSign is an optional argument and if not passed returns all of the AtCollectionModels shared by any atSign Returns an empty list when nothing has been shared

Instance of AtJsonCollectionModel is returned If a specific factory class for a given collection name is not registered Factory class for a collectionName can be registered using method AtCollectionModel.registerFactories(factories)

Implementation

static Future<List<T>> getModelsSharedBy<T extends AtCollectionModel>(
    String atSign) async {
  _logger.finer('get models shared by atSign:$atSign');
  AtCollectionModelFactoryManager.getInstance()
      .register(_jsonCollectionModelFactory);
  AtUtils.fixAtSign(atSign);
  return _atCollectionQueryOperations.getModelsSharedBy(atSign);
}