Network<T> class

Constructors

Network()

Properties

dio ↔ Dio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dataResponseByStatus(Response response) Future
getBodyData(dynamic data) String
modalPut({required String url, required T dataModel, T parseMethod(Map<String, dynamic>)?}) → dynamic
modelGet({required String url, required T dataModel, T parseMethod(Map<String, dynamic>)?}) → dynamic
modelPost({required String url, required T dataModel, required dynamic params, T parseMethod(Map<String, dynamic>)?, bool? isList}) → dynamic
networkErrors(DioException error) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printingResponse(Response response, {dynamic params}) → void
setHeader(RequestOptions options) Future<void>
Sets the current accessToken to request header.
tokenInvalidResponse(DioException error) bool
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

network Network?
getter/setter pair

Static Methods

getInstance(String accessToken) Network