RequestApiHelperConfigData class
Constructors
- RequestApiHelperConfigData({Redirects? authErrorRedirect, Future? beforeSend, String? errorMessage, bool? exception, bool? logResponse, String? noapiurl, dynamic onCompleteRawRespose(dynamic data)?, dynamic onError(int code, dynamic data)?, dynamic onException(Object e)?, dynamic onSocket(SocketException)?, dynamic onSuccess(dynamic response)?, dynamic onTimeout(TimeoutException)?, String? socketMessage, Redirects? socketRedirect, String? successMessage, Duration? timeout, String? timeoutMessage, Redirects? timeoutRedirect, String? url, String? version, Redirects? withLoading})
Properties
- authErrorRedirect ↔ Redirects?
-
auto redirect if
401
Navigator to another Widget , use Redirect(widget: Login())getter/setter pair - beforeSend ↔ Future?
-
before request send to server
getter/setter pair
- errorMessage ↔ String?
-
error message use 'default' auto response key message, or disable response ''
getter/setter pair
- exception ↔ bool?
-
exception error from code flutter
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- logResponse ↔ bool?
-
beauty response
getter/setter pair
- noapiurl ↔ String?
-
example https://this.com/
getter/setter pair
- onCompleteRawRespose ↔ (dynamic Function(dynamic data)?)
-
raw response from server without json parse
getter/setter pair
- onError ↔ (dynamic Function(int code, dynamic data)?)
-
on error from server with json parse
getter/setter pair
- onException ↔ (dynamic Function(Object e)?)
-
on Exception function
getter/setter pair
- onSocket ↔ (dynamic Function(SocketException)?)
-
on no connection function
getter/setter pair
- onSuccess ↔ (dynamic Function(dynamic response)?)
-
on success from server with json parse
getter/setter pair
- onTimeout ↔ (dynamic Function(TimeoutException)?)
-
on timeout function
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socketMessage ↔ String?
-
showing no connection message use 'default' auto response key message, or disable response ''
getter/setter pair
- socketRedirect ↔ Redirects?
-
no connection redirect
getter/setter pair
- successMessage ↔ String?
-
success message use 'default' auto response key message, or disable response ''
getter/setter pair
- timeout ↔ Duration?
-
set timeout request process
getter/setter pair
- timeoutMessage ↔ String?
-
showing timeout message use 'default' auto response key message, or disable response ''
getter/setter pair
- timeoutRedirect ↔ Redirects?
-
time out from server redirect
getter/setter pair
- url ↔ String?
-
example https://this.com/api/
getter/setter pair
- version ↔ String?
-
auto send {'version' : value}
getter/setter pair
- withLoading ↔ Redirects?
-
auto loading if request triggered
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited