ApiProvider class
A singleton class responsible for making API requests.
The ApiProvider class handles HTTP requests to various endpoints using the ApiHttpClient class. It provides methods for sending GET requests and processes responses to handle errors appropriately.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient ↔ ApiHttpClient
-
The HTTP client used to make API requests.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
{required String endpoint, Map< String, dynamic> ? headers, Map<String, dynamic> ? queryParameters}) → Future<Response> -
Sends a GET request to the specified
endpoint. -
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
Static Properties
- instance → ApiProvider
-
Provides the singleton instance of ApiProvider.
no setter