of static method

PersistedData? of(
  1. BuildContext context
)

Used to fetch persisted data anywhere across the app. Results in null if data is not yet loaded.

Implementation

static PersistedData? of(BuildContext context) => snapshot(context)?.data;