PassioConnector class abstract interface

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteFavorite({required FoodRecord foodRecord}) Future<void>
Deletes the specified favorite foodRecord.
deleteRecord({required FoodRecord foodRecord}) Future<void>
Deletes the specified foodRecord.
deleteWaterRecord({required WaterRecord record}) Future<void>
Deletes a specific water consumption record record.
deleteWeightRecord({required WeightRecord record}) Future<void>
Deletes a specific weight record record.
favoriteExists({required FoodRecord foodRecord}) Future<bool>
Checks if a favorite food record exists.
fetchConsumedWater({required DateTime dateTime}) Future<double>
Retrieves the amount of consumed water recorded for a specific date and time dateTime.
fetchDayRecords({required DateTime dateTime}) Future<List<FoodRecord>>
Fetches food records for a specific day dateTime.
fetchFavorites() Future<List<FoodRecord>?>
Fetches all favorite food records.
fetchMeasuredWeight({required DateTime dateTime}) Future<double>
Retrieves the measured weight recorded for a specific date and time dateTime.
fetchRecords({required DateTime fromDate, required DateTime endDate}) Future<List<FoodRecord>>
Fetches food records within a specified date range.
fetchUserProfile() Future<UserProfileModel?>
Fetches the user profile.
fetchWaterRecords({required DateTime fromDate, required DateTime endDate}) Future<List<WaterRecord>>
Retrieves a list of water consumption records within a specified date range.
fetchWeightRecords({required DateTime fromDate, required DateTime endDate}) Future<List<WeightRecord>>
Retrieves a list of weight records within a specified date range.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateFavorite({required FoodRecord foodRecord, required bool isNew}) Future<void>
Updates or adds a favorite food record based on foodRecord. If isNew is true, it indicates that it's a new favorite.
updateRecord({required FoodRecord foodRecord, required bool isNew}) Future<void>
Updates or adds a foodRecord. If isNew is true, it indicates that it's a new record.
updateUserProfile({required UserProfileModel userProfile, required bool isNew}) Future<void>
Updates the user profile with the provided userProfile. If isNew is true, it indicates that it's a new profile.
updateWater({required WaterRecord waterRecord, required bool isNew}) Future<void>
Updates or adds a waterRecord. If isNew is true, it indicates that it's a new record.
updateWeight({required WeightRecord record, required bool isNew}) Future<void>
Updates or adds a weight record based on record. If isNew is true, it indicates that it's a new record.

Operators

operator ==(Object other) bool
The equality operator.
inherited