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