Status class

Inheritance
Implementers

Constructors

Status({dynamic status, String? statusVerbose, String? body, String? error, int? imageId})
Status.fromApiResponse(String responseBody)
Constructs a Status from an API response
factory
Status.fromJson(Map<String, dynamic> json)
factory

Properties

body String?
final
error String?
final
hashCode int
The hash code for this object.
no setterinherited
imageId int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status → dynamic
Commonly 1 = ok, 0 = failed
final
statusVerbose String?
final

Methods

copyWith({dynamic status, String? statusVerbose, String? body, String? error, int? imageId}) Status
isWrongUsernameOrPassword() bool
Returns true if this Status is caused by wrong username or password, false otherwise.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldOpenNewIssue() bool
toData() Map<String, String>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
toValueString() String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

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

Constants

openNewIssueUrl → const String
serverErrorInEnglish → const String
serverErrorStatus → const int
WRONG_USER_OR_PASSWORD_ERROR_MESSAGE → const String
wrongUserOrPasswordErrorMessage → const String