collection<T> method
CollectionQuery<T>
collection<T>(
- String path, {
- CollectionQueryOptions<
T> options = const CollectionQueryOptions(), - bool tryUseAuth = true,
tryUseAuth
will attach Authorization information to the Headers if possible
Implementation
CollectionQuery<T> collection<T>(String path, {CollectionQueryOptions<T> options = const CollectionQueryOptions(), bool tryUseAuth = true}) {
return CollectionQuery<T>(
baseUrl: baseUrl,
path: path,
options: options,
cookie: tryUseAuth ? _cookie : null,
bearer: tryUseAuth ? _bearer : null,
);
}