LoginResult class Null safety

class to handle a login request

Constructors

LoginResult({required LoginStatus status, String? message, AccessToken? accessToken})

Properties

accessToken AccessToken?
contain the access token information for the current session this will be null when the login request fail
final
hashCode int
The hash code for this object.
read-onlyinherited
message String?
contain a message when the login request fail
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
status LoginStatus
contain status of a previous login request
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

getResultFromException(PlatformException e) → dynamic
returns an instance of LoginResult class from a PlatformException