IntroductionController class

Controller of an IntroductionView.

Inheritance
  • Object
  • GetLifeCycle
  • DisposableInterface
  • GetxController
  • IntroductionController
Implemented types
Mixed-in types

Constructors

IntroductionController(AuthService _authService, ChatService _chatService, MyUserService _myUserService)

Properties

accounts → RxMap<UserId, Rx<Credentials>>
Returns the Credentials of the available accounts.
no setter
authStatus → Rx<RxStatus>
Returns the current authentication status.
no setter
chat → Rx<RxChat?>
RxChat of a Routes.directLink initial route.
final
codeAttempts int
Amount of emailCode unsuccessful submitting attempts.
getter/setter pair
codeTimeout → RxInt
Timeout of a emailCode next submit attempt.
final
email TextFieldState
TextFieldState for an UserEmail text input.
latefinal
emailCode TextFieldState
TextFieldState of a ConfirmationCode for email.
latefinal
fetching → RxBool
Indicator whether chat is being fetched, in case Routes.directLink is the initial route.
final
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
no setterinherited
initialized bool
Checks whether the controller has already been initialized.
no setterinherited
isClosed bool
Checks whether the controller has already been closed.
no setterinherited
listeners int
no setterinherited
login TextFieldState
TextFieldState of a login text input.
latefinal
me UserId
Returns the UserId of the currently authenticated account.
no setter
myUser → Rx<MyUser?>
Returns the current myUser logged in, if any.
no setter
name TextFieldState
MyUser.name field state.
latefinal
obscureCode → RxBool
Indicator whether the emailCode should be obscured.
final
obscureNewPassword → RxBool
Indicator whether the recoveryPassword should be obscured.
final
obscurePassword → RxBool
Indicator whether the password should be obscured.
final
obscureRepeatPassword → RxBool
Indicator whether the repeatPassword should be obscured.
final
onDelete → InternalFinalCallback<void>
Internal callback that starts the cycle of this controller.
finalinherited
onStart → InternalFinalCallback<void>
Called at the exact moment the widget is allocated in memory. It uses an internal "callable" type, to avoid any @overrides in subclases. This method should be internal and is required to define the lifetime cycle of the subclass.
finalinherited
opacity → RxDouble
Opacity of the displayed IntroductionView.
final
order int
Returns the order in which the onIdentityChanged should be invoked.
no setterinherited
page → Rx<IntroductionStage?>
IntroductionStage currently displayed.
final
password TextFieldState
TextFieldState of a password text input.
latefinal
positionedKey GlobalKey<State<StatefulWidget>>
GlobalKey of a panel to prevent it from rebuilding.
final
previousPage IntroductionStage?
Previous IntroductionStage.
getter/setter pair
profiles → RxList<MyUser>
Returns the reactive list of known MyUsers.
no setter
recoveryCode TextFieldState
TextFieldState of a recovery code text input.
latefinal
recoveryIdentifier TextFieldState
TextFieldState of a recovery text input.
latefinal
recoveryPassword TextFieldState
TextFieldState of a new password text input for resetUserPassword.
latefinal
recoveryRepeatPassword TextFieldState
TextFieldState of a repeat password text input for resetUserPassword.
latefinal
repeatPassword TextFieldState
TextFieldState of a repeat password text input.
latefinal
resendEmailTimeout → RxInt
Timeout of a resendEmail next invoke attempt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signInAs MyUser?
MyUser to complete sign in information as.
getter/setter pair
signInAttempts int
Amount of signIn unsuccessful submitting attempts.
getter/setter pair
signInTimeout → RxInt
Timeout of a signIn next invoke attempt.
final
signUpEmail TextFieldState
TextFieldState of a UserEmail for registered account.
latefinal
signUpLogin TextFieldState
TextFieldState of a UserLogin for registered account.
latefinal
signUpName TextFieldState
TextFieldState of a UserName for registered account.
latefinal
stackKey GlobalKey<State<StatefulWidget>>
GlobalKey of the whole overlay to prevent it from rebuilding.
final

Methods

$configureLifeCycle() → void
inherited
addListener(GetStateUpdate listener) → Disposer
Register a closure to be called when the object notifies its listeners.
inherited
addListenerId(Object? key, GetStateUpdate listener) → Disposer
inherited
createAccount() Future<void>
deleteAccount(UserId id) Future<void>
Deletes the account with the provided UserId from the list.
dismiss() Future<void>
Dismisses the IntroductionView and resets this controller.
dispose() → void
inherited
disposeId(Object id) → void
To dispose an id from future updates(), this ids are registered by GetBuilder() or similar, so is a way to unlink the state change with the Widget from the Controller.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChildrens() → void
inherited
onClose() → void
Called before onDelete method. onClose might be used to dispose resources used by the controller. Like closing events, or streams before the controller is destroyed. Or dispose objects that can potentially create some memory leaks, like TextEditingControllers, AnimationControllers. Might be useful as well to persist some data on disk.
override
onIdentityChanged(UserId me) → void
Handles identity changes to the provided UserId.
override
onInit() → void
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
override
onReady() → void
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
inherited
recoverAccess() Future<void>
Initiates password recovery for the MyUser identified by the provided recoveryIdentifier input and stores the parsed value.
refresh() → void
inherited
refreshGroup(Object id) → void
inherited
register({UserLogin? login, UserPassword? password, UserName? name, UserEmail? email}) Future<void>
Creates a new one-time account right away.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
removeListenerId(Object id, VoidCallback listener) → void
inherited
resendEmail() Future<void>
Resends a ConfirmationCode to the specified email.
resetUserPassword() Future<void>
Resets password for the MyUser identified by the provided in recoverAccess identity and ConfirmationCode.
signIn() Future<void>
Signs in and redirects to the Routes.home page.
switchTo(UserId id) Future<void>
Switches to the account with the given id.
toString() String
A string representation of this object.
inherited
update([List<Object>? ids, bool condition = true]) → void
Rebuilds GetBuilder each time you call update(); Can take a List of ids, that will only update the matching GetBuilder( id: ), ids can be reused among GetBuilders like group tags. The update will only notify the Widgets, if condition is true.
inherited
validateCode() Future<void>
Validates the provided password recovery ConfirmationCode for the MyUser identified by the provided in recoverAccess identity.

Operators

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