isAgeOlder method

bool? isAgeOlder(
  1. int age
)

Check if DateTime is older than a certain age

Implementation

bool? isAgeOlder(int age) {
  if (this == null) return null;
  int? ageCheck = toAge();
  if (ageCheck == null) return null;
  return ageCheck > age;
}