AuthControllerImpl<T extends Auth<AuthKeys>>.fromSource constructor

AuthControllerImpl<T extends Auth<AuthKeys>>.fromSource({
  1. required AuthDataSource auth,
  2. AuthorizedDataSource<T>? backup,
  3. AuthMessages? messages,
})

Implementation

AuthControllerImpl.fromSource({
  required AuthDataSource auth,
  AuthorizedDataSource<T>? backup,
  AuthMessages? messages,
}) : this.fromHandler(
        messages: messages,
        authHandler: AuthHandlerImpl(auth),
        backupHandler: backup != null ? BackupHandlerImpl<T>(backup) : null,
      );