api method
TFirestoreApi<DTO>
api({
- FirebaseFirestore? firebaseFirestore,
- GetOptions? getOptions,
- String path(
- String collectionName
- TFirestoreLogger? logger,
- bool? isCollectionGroup,
- IFirestoreCacheService? firestoreCacheService,
- bool? forceCacheRefresh,
Implementation
TFirestoreApi<DTO> api({
FirebaseFirestore? firebaseFirestore,
GetOptions? getOptions,
String Function(String collectionName)? path,
TFirestoreLogger? logger,
bool? isCollectionGroup,
IFirestoreCacheService? firestoreCacheService,
bool? forceCacheRefresh,
}) => TFirestoreApi<DTO>(
firestoreCache: firestoreCacheService != null
? TFirestoreCache(
firestoreCacheService: firestoreCacheService,
forceCacheRefresh: forceCacheRefresh ?? this.forceCacheRefresh,
)
: null,
userIdFieldName: userIdFieldName,
defaultIdValue: defaultIdValue,
unknownIdValue: unknownIdValue,
collectionPath: () => path?.call(collectionName) ?? collectionName,
createdAtFieldName: createdAtFieldName,
documentReferenceFieldName: documentReferenceFieldName,
firebaseFirestore: firebaseFirestore ?? FirebaseFirestore.instance,
fromJson: fromJson,
fromJsonError: fromJsonError,
getOptions: getOptions,
idFieldName: idFieldName,
isCollectionGroup: isCollectionGroup ?? this.isCollectionGroup,
logger: logger,
toJson: toJson,
tryAddLocalDocumentReference: tryAddLocalDocumentReference,
tryAddLocalId: tryAddLocalId,
updatedAtFieldName: updatedAtFieldName,
);