ofTable method

  1. @override
RemoteRepo ofTable(
  1. String tableName
)
override

Implementation

@override
RemoteRepo ofTable(String tableName) {

  if (ListUtils.instance.isEmpty(paths)) {
    _collectionPath = firestore.collection(tableName);
    return this;
  }

  String repoPath = '';
  if (paths != null) {
    for(final path in paths!){
      repoPath = '$repoPath${path.path}/${path.id}/';
    }
  }

  _collectionPath = firestore.collection('$repoPath$tableName');
  return this;
}