discontinuedPackage ai_app has been discontinued.

HttpService class

Constructors

HttpService()

Properties

apiURL → String
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticateUser({required dynamic token, required dynamic firstName, required dynamic lastName}) → Future<Response>
createAnswer({required String answer, required int? user, required int? question}) → Future<Response>
get(dynamic url, {Map<String, String>? headers}) → Future<Response>
getAllQuestions() → Future<Response>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post({required dynamic url, Map<String, String>? headers, dynamic body, Encoding? encoding}) → Future<Response>
toString() → String
A string representation of this object.
inherited

Operators

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