getActivePage static method

Widget getActivePage(
  1. BuildContext context
)

Get the active widget from the router. You may want this to be your initial widget when your app starts.

Implementation

static Widget getActivePage(BuildContext context) {
  var service = Momentum.service<MomentumRouter>(context);
  var page = service.getActive();
  return page;
}