AuthenticationResult class

Annotations
  • @freezed

Constructors

AuthenticationResult.currentUser({required List<CurrentUserChannel> channels, required String id, required String identifier})
const
factory
AuthenticationResult.fromJson(Map<String, dynamic> json)
factory
AuthenticationResult.invalidCredentialsError({required String authenticationError, required ErrorCode errorCode, required String message})
const
factory
AuthenticationResult.notVerifiedError({required ErrorCode errorCode, required String message})
const
factory

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

map<TResult extends Object?>({required TResult currentUser(CurrentUser value), required TResult invalidCredentialsError(InvalidCredentialsError value), required TResult notVerifiedError(NotVerifiedError value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? currentUser(CurrentUser value)?, TResult? invalidCredentialsError(InvalidCredentialsError value)?, TResult? notVerifiedError(NotVerifiedError value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult currentUser(CurrentUser value)?, TResult invalidCredentialsError(InvalidCredentialsError value)?, TResult notVerifiedError(NotVerifiedError value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult currentUser(List<CurrentUserChannel> channels, String id, String identifier)?, TResult invalidCredentialsError(String authenticationError, ErrorCode errorCode, String message)?, TResult notVerifiedError(ErrorCode errorCode, String message)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult currentUser(List<CurrentUserChannel> channels, String id, String identifier), required TResult invalidCredentialsError(String authenticationError, ErrorCode errorCode, String message), required TResult notVerifiedError(ErrorCode errorCode, String message)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? currentUser(List<CurrentUserChannel> channels, String id, String identifier)?, TResult? invalidCredentialsError(String authenticationError, ErrorCode errorCode, String message)?, TResult? notVerifiedError(ErrorCode errorCode, String message)?}) → TResult?
inherited

Operators

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