ofAge method
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));
}
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));
}