restore method

Future<void> restore()

Restores navigation history using the configured persistence handler

Implementation

Future<void> restore() async {
  final onRestore = _persistence?.onRestore;
  if (onRestore == null) return;
  final data = await onRestore();
  restoreBase(data);
}