getStatus method
dynamic
getStatus()
Implementation
getStatus(
Iterable<TaskModel> tasks,
List<ProjectBeneficiaryModel> projectBeneficiaries,
bool isNotEligible,
bool isBeneficiaryRefused) {
if (projectBeneficiaries.isNotEmpty) {
if (tasks.isEmpty) {
return Status.registered.toValue();
} else {
return getTaskStatus(tasks.toList()).toValue();
}
} else {
return Status.notRegistered.toValue();
}
}