clearHistoryWithContext static method
Clear navigation history using context.
Implementation
static Future<void> clearHistoryWithContext(BuildContext context) async {
var service = Momentum.service<MomentumRouter>(context);
await service.clearHistory();
}