checkIfBeneficiaryRefused function

bool checkIfBeneficiaryRefused(
  1. List<TaskModel>? tasks
)

Implementation

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

  return isBeneficiaryRefused;
}