if(context.mounted){ Navigator.push(context, MaterialPageRoute(builder: (context)=> const Dashboard())); } if (!mounted) return; Navigator.push(context, CupertinoPageRoute(builder: (context) => const SignUpScreen()));if (!mounted) return; Navigator.push( context, PageTransition( type: PageTransitionType.rightToLeft, child: const ResetEmailScreen()));