get method

void get(
  1. String uri,
  2. String contract,
  3. void onSuccess(
    1. String,
    2. int
    ),
  4. void onError(
    1. String,
    2. int
    ),
)

Implementation

void get(String uri, String contract, void Function(String, int) onSuccess,
    void Function(String, int) onError) {
  _idCounter++;
  _requestResultCbMap[_idCounter] = onSuccess;
  _requestErrorCbMap[_idCounter] = onError;

  _channel.invokeMethod('get', <String, dynamic>{
    "uri": uri,
    "contract": contract,
    "requestId": _idCounter
  });
}