put method

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

Implementation

void put(String uri, String contract, void Function(String, int) onSuccess,
    void Function(String, int) onError) {
  _idCounter++;
  _requestResultCbMap[_idCounter] = onSuccess;
  _requestErrorCbMap[_idCounter] = onError;
  _channel.invokeMethod('put', <String, dynamic>{
    "uri": uri,
    "contract": contract,
    "requestId": _idCounter
  });
}