CheckStatusResp class
A class that handles checking the status response.
This class provides a method check that takes a ResultResp object and performs
actions based on the response. It has optional parameters to control the behavior
of error dialogs and to specify success and failure callbacks.
The replaceLoginScreen property is used to specify the screen to be replaced with when the session is invalid. The codeInvalidSession property is the code that indicates an invalid session.
- Annotations
-
- @lazySingleton
Constructors
Properties
- codeInvalidSession ↔ String
-
This variable represents the code for an invalid session.
The default value is '404'.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- replaceLoginScreen ↔ Widget
-
This variable represents the widget that will replace the login screen.
The default value is a LoginDummyScreen.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
ResultResp resp, {bool showDialogError = true, bool checkSession = true, dynamic onSuccess()?, dynamic onFailure()?, dynamic actionDialogError()?}) → dynamic -
Checks the status response
respand performs actions based on the result. -
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