firestore_cache
firestore_cache copied to clipboard
fix: withConverter
now support firestore documents with custom converter
before documents initiated with withConverter collection couldn't be passed into function because function takes DocumentReference<Map<String,dynamic>> type but our doc is DocumentReference<CustomClass> type
error befor--- ` final doc=i.collection("col").withConverter(fromFirestore: fromFirestore, toFirestore: toFirestore).doc("doc");
`
Codecov Report
Merging #99 (4404ff1) into main (e13e3a8) will decrease coverage by
13.15%
. The diff coverage is64.28%
.
@@ Coverage Diff @@
## main #99 +/- ##
============================================
- Coverage 100.00% 86.84% -13.16%
============================================
Files 1 1
Lines 31 38 +7
============================================
+ Hits 31 33 +2
- Misses 0 5 +5
Impacted Files | Coverage Δ | |
---|---|---|
lib/src/firestore_cache.dart | 86.84% <64.28%> (-13.16%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update e13e3a8...4404ff1. Read the comment docs.