DioNetworkService class

Inheritance
Mixed-in types

Constructors

DioNetworkService()

Properties

baseUrl String
no setteroverride
dio → Dio
final
dioBaseOptions → BaseOptions
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, Object>
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String endpoint, {Map<String, dynamic>? queryParameters}) Future<Either<AppException, Response>>
override
handleException<T extends Object>(Future<Response> handler(), {String endpoint = ''}) Future<Either<AppException, Response>>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String endpoint, {Map<String, dynamic>? data}) Future<Either<AppException, Response>>
override
postFileUpload(String endpoint, {Map<String, dynamic>? data, List<File>? files, String? fileKey}) Future<Either<AppException, Response>>
override
toString() String
A string representation of this object.
inherited
updateHeader(Map<String, dynamic> data) Map<String, dynamic>?
override

Operators

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