collection method

RecordService collection(
  1. String collectionIdOrName
)

Returns the RecordService associated to the specified collection.

Implementation

RecordService collection(String collectionIdOrName) {
  var service = _recordServices[collectionIdOrName];

  if (service == null) {
    // create and cache the service
    service = RecordService(this, collectionIdOrName);
    _recordServices[collectionIdOrName] = service;
  }

  return service;
}