persist method
Persists the current navigation history using the configured persistence handler
Implementation
Future<void> persist() async {
final onPersist = _persistence?.onPersist;
if (onPersist == null) return;
final data = persistBase();
await onPersist(data);
}