ApiService class abstract

The ApiService abstract class defines a contract for making HTTP requests.

Constructors

ApiService.new()

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

get<T>(String url) Future<T>
Performs an HTTP GET request to the specified url.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(String url, {Map<String, String> headers = const {"Content-Type" : "application/json"}, Object? body}) Future<T>
Performs an HTTP POST request to the specified url.
toString() String
A string representation of this object.
inherited

Operators

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