HiveService class
Constructors
Properties
-
cropDataBox
→ Box<
CropData> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
productBox
→ Box<
Product> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settingsBox → Box
-
no setter
-
taskBox
→ Box<
CropTask> -
no setter
-
userBox
→ Box<
User> -
no setter
Methods
-
addCropTask(
CropTask task) → Future< void> -
addOrUpdateTask(
CropTask task) → Future< void> -
addProduct(
Product product) → Future< void> -
deleteProduct(
String id) → Future< void> -
deleteTask(
String id) → Future< void> -
getAllCropData(
) → List< CropData> -
getAllCrops(
) → List< String> -
getAllProducts(
) → List< Product> -
getAllTasks(
) → List< CropTask> -
getCropDataById(
String id) → CropData? -
getCurrentUser(
) → User? -
getProductsByListingType(
ListingType listingType) → List< Product> -
getProductsByLocation(
String location) → List< Product> -
getProductsByType(
ProductType type) → List< Product> -
getTasksForDate(
DateTime date) → List< CropTask> -
getTasksSortedByDate(
) → List< CropTask> -
init(
) → void -
initializeCropData(
) → Future< void> -
isFirstLaunch(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveCropData(
CropData cropData) → Future< void> -
saveProduct(
Product product) → Future< void> -
saveTask(
CropTask newTask) → Future< void> -
saveUser(
User user) → Future< void> -
setFirstLaunch(
bool value) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
updateTask(
CropTask task) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- cropDataBoxName → const String
- productBoxName → const String
- settingsBoxName → const String
- taskBoxName → const String
- userBoxName → const String