onAfterRestore property
List of callbacks to be invoked after restore completes.
These callbacks are called in the order they were added, after all state restoration has completed successfully. Useful for notifying UI or performing post-restore operations.
Example:
StateSnapshot.onAfterRestore.add(() {
print('State restore completed');
});
Implementation
static final List<void Function()> onAfterRestore = [];