Spec-Zone.ru › Dart 1

dart:developer

Конструктор ServiceExtensionResponse.result

ServiceExtensionResponse.result(String result)

Создаёт успешный ответ на вызов RPC сервисного протокола расширения.

Требуется result , чтобы быть JSON-объектом, закодированным в строку. При формировании JSON-RPC сообщения result будет вставлен напрямую.

Исходный код

ServiceExtensionResponse.result(String result)
    : _result = result,
      _errorCode = null,
      _errorDetail = null {
  if (_result is! String) {
    throw new ArgumentError.value(_result, "result", "Must be a String");
  }
}

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

Spec-Zone.ru

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