AuthManager constructor
const
AuthManager({})
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);