answer method

void answer(
  1. int id,
  2. Object? result
)

The answer to request id.

Implementation

void answer(int id, Object? result) => say(
  jsonEncode(<Object?>[
    <String, Object?>{'id': id, 'result': result},
  ]),
);