Dart API Referencedart:htmlIDBKeyRange

IDBKeyRange Interface

The IDBKeyRange interface of the IndexedDB API represents a continuous interval over some data type that is used for keys. Records can be retrieved from object stores and indexes using keys or a range of keys. You can limit the range using lower and upper bounds. For example, you can iterate over all values of a key between x and y.

Constructors

Code new IDBKeyRange.upperBound(bound, [bool open]) #

IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open]);

Code new IDBKeyRange.bound(lower, upper, [bool lowerOpen, bool upperOpen]) #

IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
                  [bool lowerOpen, bool upperOpen]);

Code new IDBKeyRange.lowerBound(bound, [bool open]) #

IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open]);

Code new IDBKeyRange.only(value) #

IDBKeyRange.only(/*IDBKey*/ value);

Fields

Code final lower #

final Dynamic lower;

Code final bool lowerOpen #

final bool lowerOpen;

Code final upper #

final Dynamic upper;

Code final bool upperOpen #

Returns false if the upper-bound value is included in the key range.
final bool upperOpen;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.