setAccessLevel method

Future<void> setAccessLevel(
  1. SetAccessLevelAccessOptions accessOptions
)

Sets the desired access level for the storage area. By default, session storage is restricted to trusted contexts (extension pages and service workers), while managed, local, and sync storage allow access from both trusted and untrusted contexts. returns Promise that resolves on success, or rejects on failure.

Implementation

Future<void> setAccessLevel(SetAccessLevelAccessOptions accessOptions) async {
  await _wrapped.setAccessLevel(accessOptions.toJS).toDart;
}