isAfterNow method

bool isAfterNow([
  1. DateTime? now
])

Checks if the date is in the future compared to the current date and time.

Args: now (DateTime?, optional): The current date and time. Defaults to null (uses the actual current date and time).

Returns: bool: True if the date is in the future, False otherwise.

Implementation

bool isAfterNow([DateTime? now]) {
  now ??= DateTime.now();
  return isAfter(now);
}