resetWithContext<T extends Widget> static method
Clear navigation history using context and set an initial page.
Implementation
static Future<void> resetWithContext<T extends Widget>(
BuildContext context,
) async {
var service = Momentum.service<MomentumRouter>(context);
await service.reset<T>();
}