fnLastYear function

dynamic fnLastYear()

Expression function last-year(): The first day of last year.

Implementation

dynamic fnLastYear() {
  final now = DateTime.now();
  return DateTime(now.year - 1, now.month, now.day);
}