Added some documentation and fixes code format

This commit is contained in:
Marc Grau Benaiges 2020-04-05 23:12:40 +02:00
parent e0c3f4b647
commit c59b96c9bf
1 changed files with 7 additions and 3 deletions

View File

@ -36,6 +36,10 @@ abstract class MoorWebStorage {
/// applications that never used the local storage implementation as a small /// applications that never used the local storage implementation as a small
/// performance improvement. /// performance improvement.
/// ///
/// When the [inWebWorker] parameter (defaults to false) is set,
/// the implementation will use [WorkerGlobalScope] instead of [window] as
/// it isn't accessible from the worker.
///
/// However, older browsers might not support IndexedDB. /// However, older browsers might not support IndexedDB.
@experimental @experimental
factory MoorWebStorage.indexedDb(String name, factory MoorWebStorage.indexedDb(String name,