An indexed database object for storing client-side data in web apps.

Inheritance
Annotations
  • DocsEditable()
  • DomName('IDBDatabase')
  • SupportedBrowser(SupportedBrowser.CHROME)
  • SupportedBrowser(SupportedBrowser.FIREFOX, '15')
  • SupportedBrowser(SupportedBrowser.IE, '10')
  • Experimental()
  • Unstable()

Constants

EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort')
const

Static factory designed to expose abort events to event handlers that are not necessarily instances of Database.

EventStreamProvider<Event> closeEvent = const EventStreamProvider<Event>('close')
const

Static factory designed to expose close events to event handlers that are not necessarily instances of Database.

EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const

Static factory designed to expose error events to event handlers that are not necessarily instances of Database.

EventStreamProvider<VersionChangeEvent> versionChangeEvent = const EventStreamProvider<VersionChangeEvent>('versionchange')
const

Static factory designed to expose versionchange events to event handlers that are not necessarily instances of Database.

Properties

name String
read-only

objectStoreNames List<String>
read-only

on Events
read-only, inherited

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

onAbort Stream<Event>
read-only

Stream of abort events handled by this Database.

onClose Stream<Event>
read-only

Stream of close events handled by this Database.

onError Stream<Event>
read-only

Stream of error events handled by this Database.

onVersionChange Stream<VersionChangeEvent>
read-only

Stream of versionchange events handled by this Database.

version Object
read-only

Methods

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited

close() → void

createObjectStore(String name, {String keyPath, bool autoIncrement}) → ObjectStore

deleteObjectStore(String name) → void

dispatchEvent(Event event) → bool
inherited

removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited

transaction(storeName_OR_storeNames, [String mode]) → Transaction

transactionList(List<String> storeNames, [String mode]) → Transaction

transactionStore(String storeName, [String mode]) → Transaction

transactionStores(List<String> storeNames, [String mode]) → Transaction