setMasterKey method

void setMasterKey(
  1. String key,
  2. String checkValue,
  3. int keyIndex
)

Implementation

void setMasterKey(String key, String checkValue, int keyIndex) async{
  Map<String, String> params = Map<String, String>();
  params['key'] = key;
  params['checkValue'] = checkValue;
  StringBuffer index = StringBuffer();
  index.write(keyIndex);
  params['keyIndex'] = index.toString();
  await _methodChannel.invokeMethod('setMasterKey',params);

}