EasyHttpConfig class Null safety

Class used to set http client config

Constructors

EasyHttpConfig({required String identifier, required String apiPath, dynamic headers, dynamic timeOut = 30 * 1000, dynamic validStatus = 204, dynamic followRedirect = false, dynamic includeLogger = true})
Model that is requested when initializing the package.

Properties

apiPath String
Base URL of your service
read / write
followRedirect bool?
If you want to follow the redirects. By default is false
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
headers Map<String, dynamic>
Headers you want to include in your queries
read / writeinherited
identifier String
Label (name) to identifier API path
read / write
includeLogger bool?
If you want a log of the query you are doing at that time to be displayed.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
timeOut int?
Timeout to request data from the server
finalinherited
validStatus int?
Valid status code for the request to be interpreted as complete or incomplete.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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