initAccountSQL method

Future initAccountSQL({
  1. required String phone,
  2. required String uidPhone,
})

Implementation

Future initAccountSQL({
  required String phone,
  required String uidPhone,
}) async {
  if (uidPhone.isEmpty || phone.isEmpty) return;
  try {
    await SQLService.createAccountIfNotExists(phone, uidPhone);
    if (kDebugMode) {
      print('$runtimeType.initAccountSQL with phone: $phone, uid: $uidPhone');
    }
    return true;
  } catch (e) {
    handelException(e, subTitle: 'initAccountSQL');
    return false;
  }
}