isSameSecond method

bool isSameSecond(
  1. DateTime other
)

Whether two DateTime are the same second.

Implementation

bool isSameSecond(DateTime other) =>
    year == other.year &&
    month == other.month &&
    day == other.day &&
    hour == other.hour &&
    minute == other.minute &&
    second == other.second;