indexedDB property Null safety

  1. @SupportedBrowser(SupportedBrowser.CHROME, '23.0')
  2. @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
  3. @SupportedBrowser(SupportedBrowser.IE, '10.0')
IdbFactory? indexedDB

Gets an instance of the Indexed DB factory to being using Indexed DB.

Use dart:indexed_db.IdbFactory.supported to check if Indexed DB is supported on the current platform.

Implementation

@SupportedBrowser(SupportedBrowser.CHROME, '23.0')
@SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
@SupportedBrowser(SupportedBrowser.IE, '10.0')
IdbFactory? get indexedDB => JS(
    'IdbFactory|Null', // If not supported, returns null.
    '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB',
    this,
    this,
    this);