load method

Future<PersistedData> load (
  1. PersistedStateStorage storage,
  2. Duration saveTimeout
)

Implementation

static Future<PersistedData> load(PersistedStateStorage storage, Duration saveTimeout) async {
  return PersistedData._(
      storage,
      await storage.load().catchError((e, st) {
        FlutterError.reportError(FlutterErrorDetails(
          exception: e,
          stack: st,
          library: 'state_persistence',
          silent: true,
        ));
      }),
      saveTimeout);
}