ofAge method

PatientFilter ofAge(
  1. int age
)

Implementation

PatientFilter ofAge(int age) {
  final now = DateTime.now();
  return dateOfBirthBetween(DateTime(now.year - age - 1, now.month, now.day).add(Duration(days: 1)), DateTime(now.year - age, now.month, now.day));
}