getClearLeadMode method
Implementation
String getClearLeadMode(
Datum content, String buttonStatus, bool clearleadcheck) {
if (!clearleadcheck) {
return buttonStatus;
}
Contentdetail contentdetail = content.contentdetails![0];
int clearLeadDuration = contentdetail.clearlead ?? 0;
if (clearLeadDuration == 0) {
return buttonStatus;
}
return clearLead;
}