checkTerm method

dynamic checkTerm()

Implementation

checkTerm() {
  String faqid = "/1";
  showModalBottomSheet(
      context: contextnya,
      isDismissible: false,
      isScrollControlled: true,
      enableDrag: false,
      elevation: 10,
      backgroundColor: Colors.transparent,
      barrierColor: Colors.transparent,
      builder: (builder) {
        return CheckListTermAndCondition(
          faqid: faqid,
        );
      }).then((value) {
    Preferences.getTerm().then((value) {
      if (value != null && value == "1") {
        registerCheckBox = true;
        setState(() {
          checkBeforeRegister();
        });
      }
    });
  });
  // Preferences.getLanguageSetting().then((value) {
  //   if (value != null) {
  //     faqid = "/$value";
  //   } else {
  //     faqid = "/1";
  //   }
  //
  // });
}