snapshot method

AsyncSnapshot<PersistedData> snapshot (
  1. BuildContext context
)

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) {
  final _PersistedScope scope = context.inheritFromWidgetOfExactType(_PersistedScope);
  return scope.snapshot;
}