Response constructor

Response(
  1. String id, {
  2. Map<String, Object?>? result,
  3. RequestError? error,
})

Initialize a newly created instance to represent a response to a request with the given id. If result is provided, it will be used as the result; otherwise an empty result will be used. If an error is provided then the response will represent an error condition.

Implementation

Response(this.id, {this.result, this.error});