isPast function

bool isPast(
  1. DateTime? time
)

Implementation

bool isPast(DateTime? time) => time?.isBefore(DateTime.now()) == true;