isTodayTs function

bool isTodayTs(
  1. int timeInTs
)

Implementation

bool isTodayTs(int timeInTs) {
  final date = getTimeFromTs(timeInTs);
  final now = DateTime.now();
  return now.year == date.year &&
      now.month == date.month &&
      now.day == date.day;
}