ApiConnector class

The ApiConnector class is responsible for managing interactions with external APIs, such as user authentication, credentials management, and handling API responses.

Constructors

ApiConnector()
Constructor for ApiConnector.

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

getAuthenticationItemMap() Map<String, dynamic>
Returns a map containing the authentication token required for API calls.
getCredentialsItemMap({required String userName, required String hashedPassword}) Map<String, dynamic>
Returns a map containing credentials for API calls.
getCredentialsItemMapFromUser({required User user}) Map<String, dynamic>
Returns a map containing credentials for API calls from a User object.
getMealRepo() ApiMealRepo
Provides an instance of ApiMealRepo for meal-related API operations.
getUserRepo() ApiUserRepo
Provides an instance of ApiUserRepo for user-related API operations.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printHttpResponse(Response response) → void
Prints the HTTP response to the console.
toString() String
A string representation of this object.
inherited

Operators

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