oneWithID<T> method
override
Checks if a document exists in Localstore using its type and ID.
Implementation
@override
Future<bool> oneWithID<T>(Type type, String documentID, { String? subcollection }) async {
DocumentRef ref = LS.instance.collection(type.toString()).doc(documentID);
if (subcollection != null) {
ref = LS.instance.collection(type.toString()).doc(subcollection).collection(subcollection).doc(documentID);
}
Map<String, dynamic>? data = await ref.get();
return data != null;
}