Spec-Zone.ru › Dart 2

dart:developer

Метод instant

void instant(
  1. String name,
  2. {Map? arguments}
)

Вызвать мгновенное событие для этой задачи. Допустимо передать Map arguments.

Реализация

void instant(String name, {Map? arguments}) {
  if (!_hasTimeline) return;
  // TODO: When NNBD is complete, delete the following line.
  ArgumentError.checkNotNull(name, 'name');
  if (!_isDartStreamEnabled()) {
    // Stream is disabled.
    return;
  }
  Map? instantArguments;
  if (arguments != null) {
    instantArguments = new Map.from(arguments);
  }
  if (_filterKey != null) {
    instantArguments ??= {};
    instantArguments[_kFilterKey] = _filterKey;
  }
  _reportTaskEvent(
      _taskId, 'n', 'Dart', name, _argumentsAsJson(instantArguments));
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-developer/TimelineTask/instant.html

Spec-Zone.ru

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