getAll method

Future<Map<String, String>> getAll()

Returns all key–value pairs currently stored.

Implementation

Future<Map<String, String>> getAll() async {
  try {
    return await _storage.readAll();
  } catch (e, st) {
    throw StorageException(
      message: 'Failed to read all keys',
      cause: e,
      stackTrace: st,
    );
  }
}