login method

Future<void> login(
  1. BuildContext context,
  2. dynamic loginFormK
)

Implementation

Future<void> login(BuildContext context, loginFormK) async {
  if (!loginFormK.currentState!.validate()) {
    return;
  }
  loginFormK.currentState!.save();
  Get.toNamed(
    Routes.OTP,
  ); // arguments: data.toJson()
  //get FCM Token
/*
  final notificationService = Get.find<NotificationsService>();
  loading(true);
  final token = await notificationService.getFCMToken();
  log('PUSH TOKEN Login: $token');
 */
  //callApi
  /*  (await _loginRequests.clientLogin(
      phone: phoneCont.text, loading: loading, fcmToken: "token"))
      .fold(
          (error) => PopUp.showAwesomeDialog(context,
          animType: AnimType.leftSlide,
          dialogType: DialogType.error,
          btnCancelText: 'back',
          content: (error.msg ?? '').tr),
          (data) => _navigate(data));*/
}