fetchdetails method

dynamic fetchdetails(
  1. BuildContext context
)

Implementation

fetchdetails(BuildContext context) async {
  // loader(context, "Loading");
  var result = await diorequest().post(checmethod.toLowerCase(), {
    'number': bvnController.text,
  });
  // Navigator.pop(context);
  if (result["success"] == 1) {
    bvnimage = result['data']['image'];
    reference = result['data']["reference"];
    if (captureimage.toString().isNotEmpty) {
      compareimage(context);
    }
  } else {
    stage = 2;
    displaymessage = "Invalid $checmethod provided";
    verificationstatus = 0;
  }
}