NetworkService class abstract

A base class for all network services that provides common HTTP operations.

Implement this class to create specific network services for your application.

Implementers

Constructors

NetworkService()

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
log → Logger
The Logger instance for this class.
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

get(String url, {Map<String, String>? headers, Map<String, String>? queryParameters}) → Future<HttpResponse>
Sends a GET request to the specified url.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, {Map<String, String>? headers, dynamic body}) → Future<HttpResponse>
Sends a POST request to the specified url.
toString() → String
A string representation of this object.
inherited

Operators

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