AuthManager constructor

const AuthManager({
  1. Key? key,
  2. required Widget loginFragment,
  3. required Widget destinationFragment,
})

An Authentication Gateway for your application

If the User is logged in, it automatically redirects to the destinationFragment and if the user is not logged in, it redirects to the loginFragment can also accomodate a customWaitingScreen or a default one if needed.

loginFragment (required) - The Login View

destinationFragment (required) - The Destination View

Implementation

const AuthManager({
  Key? key,
  required this.loginFragment,
  required this.destinationFragment,
}) : super(key: key);