MomentumRouter constructor
Create an instance of MomentumRouter that can be injected to momentum as a service. Takes a list of widgets as routes.
Implementation
MomentumRouter(
List<Widget> pages, {
bool? enablePersistence,
}) : _pages = pages,
_enablePersistence = enablePersistence ?? true;