snapshot static method
Used to fetch the AsyncSnapshot of the persisted data. This allows you to monitor the progress of the loading data.
Implementation
static AsyncSnapshot<PersistedData>? snapshot(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<_PersistedScope>()?.snapshot;
}