Конструктор ServiceExtensionResponse.result
- String result
Создает успешный ответ на вызов RPC расширения протокола службы.
Требуется, чтобы result был JSON-объектом, закодированным в строку. При формировании JSON-RPC сообщения result будет внедрена непосредственно.
Реализация
ServiceExtensionResponse.result(String result)
: result = result,
errorCode = null,
errorDetail = null {
// TODO: When NNBD is complete, delete the following line.
checkNotNullable(result, "result");
}
© 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/ServiceExtensionResponse/ServiceExtensionResponse.result.html