What is Difference Between onGenerateRoute and routes In Flutter

What is the Difference Between onGenerateRoute and routes In Flutter ??

· 3 min read

onGenerateRoute gives you a single place to add your custom business logic before pushing new routes (pages). For example, if you want to do some initialization. So in today’s article, we will walk through What is the Difference Between onGenerateRoute and routes In Flutter. What is the Difference Between onGenerateRoute and routes In Flutter?? routes…