update method
Implementation
@override
Future<void> update(String path, BaseModel data) async {
try {
var pathParam = path.split("/");
var collection = collectionPath(pathParam);
if (pathParam.length.isOdd) {
await collection.doc(pathParam.removeAt(0)).update(data.toJSON());
} else {
throw IsNotDocException(
"Path does not end in a doc id", StackTrace.current);
}
} catch (err, s) {
throw UpdateSingleError(err.toString(), s);
}
}