SignUpStatus class

The response from a call to the OpenFoodAPIClient.register method The status may be:

  • 201: Account created + user logged in
  • 400: An error occurred - see statusError for more information
  • 500: Unknown error
Inheritance

Constructors

SignUpStatus(Status status)
factory

Properties

body String?
finalinherited
error String?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
imageId int?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status → dynamic
finalinherited
statusErrors Iterable<SignUpStatusError>?
A list of errors returned by the server
final
statusVerbose String?
finalinherited

Methods

copyWith({dynamic status, String? statusVerbose, String? body, String? error, int? imageId}) Status
inherited
isWrongUsernameOrPassword() bool
Returns true if this Status is caused by wrong username or password, false otherwise.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() Map<String, String>
inherited
toJson() Map<String, dynamic>
inherited
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