age property

int? get age

만 나이 계산 (birthyear가 있는 경우)

Implementation

int? get age {
  if (birthyear == null) return null;
  final year = int.tryParse(birthyear!);
  if (year == null) return null;
  return DateTime.now().year - year;
}