daysBetween method

int daysBetween(
  1. DateTime from
)

Implementation

int daysBetween(DateTime from) {
  from = DateTime(from.year, from.month, from.day);
  return (DateTime.now().difference(from).inHours / 24).round();
}