Request constructor

Request(
  1. String id,
  2. String method, [
  3. Map<String, Object?>? params,
  4. int? serverRequestTime,
])

Initialize a newly created Request to have the given id and method name. If params is supplied, it is used as the "params" map for the request. Otherwise an empty "params" map is allocated.

Implementation

Request(this.id, this.method,
    [Map<String, Object?>? params, this.serverRequestTime])
    : params = params ?? <String, Object?>{};