clearHistoryWithContext static method

Future<void> clearHistoryWithContext(
  1. BuildContext context
)

Clear navigation history using context.

Implementation

static Future<void> clearHistoryWithContext(BuildContext context) async {
  var service = Momentum.service<MomentumRouter>(context);
  await service.clearHistory();
}