ModBaseSigninBloc class abstract

Base business logic component for any signin mechanism

Inheritance
Implementers

Constructors

ModBaseSigninBloc()

Properties

controller StreamController<ModResourceResult<ThirdPartySessionModel>?>
Stream controller
finalinherited
dataStream Stream<ModResourceResult<ThirdPartySessionModel>?>
Data stream (pipe) with binded widget
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
repo ISessionRepo
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildResult({ThirdPartySessionModel? data = null, int code = -1}) ModResourceResult<ThirdPartySessionModel>
Encapsulate build result objects creation to avoid inconsistencies
inherited
callAuthentication(ModSessionDTO dto) Future<ThirdPartySessionModel?>
Launches auth flow. Must be overriden by children
dispose() → void
Free resources
inherited
getErrorCode({Exception? e}) int
Returns custom error code Must be overriden by children
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performOperation(ModSessionDTO dto) → void
Abstraction to perform some operation using params received. Must be overriden by children.
override
processData(ModResourceResult<ThirdPartySessionModel>? data) → void
Send data to binded widget automatically triggering a rebuild
inherited
toString() String
A string representation of this object.
inherited

Operators

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