appRouter property Null safety

FluroRouter appRouter
final

The static / singleton instance of FluroRouter

Attach FluroRouter to MaterialApp by connnecting FluroRouter.generator to MaterialApp.onGenerateRoute.

Define routes with FluroRouter.define, optionally specifying transition types and connecting string path params to your screen widget's constructor.

Push new route paths with FluroRouter.appRouter.navigateTo or continue to use Navigator.of(context).push if you prefer.

Implementation

static final appRouter = FluroRouter();