Spec-Zone.ru › Dart 1

dart:indexed_db

Метод openKeyCursor

Stream<Курсор> openKeyCursor({ключ, Диапазон ключей range, Строка direction, Булево autoAdvance })

Создает поток курсоров над записями в этом объекте хранилища.

См. также:

  • ObjectStore.openCursor

Исходный код

Stream<Cursor> openKeyCursor(
    {key, KeyRange range, String direction, bool autoAdvance}) {
  var key_OR_range = null;
  if (key != null) {
    if (range != null) {
      throw new ArgumentError('Cannot specify both key and range.');
    }
    key_OR_range = key;
  } else {
    key_OR_range = range;
  }
  var request;
  if (direction == null) {
    // FIXME: Passing in "next" should be unnecessary.
    request = _openKeyCursor(key_OR_range, "next");
  } else {
    request = _openKeyCursor(key_OR_range, direction);
  }
  return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-indexed_db/Index/openKeyCursor.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API