ValidateResponse class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
changeStatus(
int? i) → int - used to change status from "favorite" to "unfavorite" and vise versa
-
isFailed(
int? n) → bool -
isFalse(
int? n) → bool -
isPaginateLaravelEnd(
int? currentPage, int? last_page) → bool - 1- example totalBar record is 100, while pagiantor is 10 current page is 9 "to" is 10
-
isResponseStatusCodeInvalidToken(
Response response) → bool - 403 Forbidden status code. 401 Unauthorized.
-
isStatusBadRequest(
Response response) → bool -
isStatusCredentialWrong(
Response response) → bool -
isStatusFrom200To210(
Response response) → bool -
isStatusFrom200To210Code(
int statusCode) → bool -
isStatusFrom200To210Response(
Response response) → bool - status between 200 - 210
-
isSuccess(
int? n) → bool -
example success: { "status": "success", "code": 1,
example faild: { "status": "error", "code": 0, "message": "Unauthorized" }
-
isSuccessStatusCode(
Response response) → bool - status between 200 - 210
-
isTrue(
int? n) → bool -
isValidJson(
Response response) → bool -
parseBoolean(
String? n) → bool - "block": "0", >> means false
-
parseBoolean_int(
int? n) → bool