Response constructor
Response(
- String id, {
- Map<
String, Object?> ? result, - 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});