parameter "messageText" is optional. By default the message text is "Your OTP is : XXXX". If "messageText" parameter is passed then message is sent as " XXXX".
resultChecker() which takes the OTP entered by the user as a parameter. The function returns true if OTP is matched, else false is returned.
boolresultChecker(int enteredOtp) {
...
}
NOTE: The OTP entered by user (say, through TextField widget or TextFormField widget etc) is to be passed as a parameter to this function.
Usage
To use this package in your application you need to have a sim card in your mobile.