SexyAPI class

A class that contains the library's methods

Constructors

SexyAPI({required String url, String path = "", required Map<String, dynamic> parameters})

Properties

hashCode int
The hash code for this object.
no setterinherited
parameters Map<String, dynamic>
Query String parameters
getter/setter pair
path String
URL path for the API
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
Full url minus the path
getter/setter pair

Methods

delete({required Object? body, Map<String, String>? headers}) Future<String>
get({Map<String, String>? headers}) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch({required Object? body, Map<String, String>? headers}) Future<String>
post({required Object? body, Map<String, String>? headers}) Future<String>
put({required Object? body, Map<String, String>? headers}) Future<String>
toString() String
A string representation of this object.
inherited

Operators

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