ApiService class

Constructors

ApiService()

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

getRequest(String url, [Map<String, String>? header]) Future
Sends a GET request to the specified URL and returns the response
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postRequest(String url, {Map<String, String>? headers, dynamic body, dynamic encoding}) Future
Sends a POST request to the specified URL and returns the response
toString() String
A string representation of this object.
inherited

Operators

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