resetWithContext<T extends Widget> static method

Future<void> resetWithContext<T extends Widget>(
  1. BuildContext context
)

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>();
}