DataHandler class

The DataHandler class serves as the main entry point for managing user data interactions with both the API and local database.

It holds instances of ApiConnector and DatabaseWrapper to provide a bridge for accessing and manipulating data from both sources.

Constructors

DataHandler()
Constructor for DataHandler.

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

getMealRepo() DataHandlerMealRepo
Provides an instance of DataHandlerMealRepo for managing meal-related data operations through the API.
getUserRepo() DataHandlerUserRepo
Returns an instance of DataHandlerUserRepo for managing user-related data operations using both API and database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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