LoginState class

Annotations
  • @freezed

Constructors

LoginState.loginErrorState(String message)
const
factory
LoginState.loginInitialState()
const
factory
LoginState.loginSuccessState(LoginData loginData)
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 loginInitialState(_LoginInitialState value), required TResult loginSuccessState(_LoginSuccessState value), required TResult loginErrorState(_LoginErrorState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult loginInitialState(_LoginInitialState value)?, TResult loginSuccessState(_LoginSuccessState value)?, TResult loginErrorState(_LoginErrorState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult loginInitialState(_LoginInitialState value)?, TResult loginSuccessState(_LoginSuccessState value)?, TResult loginErrorState(_LoginErrorState value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult loginInitialState()?, TResult loginSuccessState(LoginData loginData)?, TResult loginErrorState(String message)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult loginInitialState(), required TResult loginSuccessState(LoginData loginData), required TResult loginErrorState(String message)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult loginInitialState()?, TResult loginSuccessState(LoginData loginData)?, TResult loginErrorState(String message)?}) → TResult?
inherited

Operators

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