submitChallengeAnswer method

dynamic submitChallengeAnswer (
  1. {@required Map answer}
)

Send an answer back to the security check that triggered this challenge. The answer must be in Map format. For ex: var answer = new Map(); answer'username' = 'admin'; answer'password' = 'admin';

Implementation

submitChallengeAnswer({@required Map answer}) {
  _channel.invokeMethod(WLCLIENT_SUBMIT_CHALLENGEANSWER,
      <String, dynamic>{SECURITY_CHECKNAME: securityCheck, ANSWER: answer});
}