checkIfBeneficiaryRefused function
Implementation
bool checkIfBeneficiaryRefused(
List<TaskModel>? tasks,
) {
final isBeneficiaryRefused = (tasks != null &&
(tasks ?? []).isNotEmpty &&
tasks.last.status == Status.beneficiaryRefused.toValue());
return isBeneficiaryRefused;
}