isSameMillisecond method

bool isSameMillisecond(
  1. DateTime other
)

Returns true if the date is in the same millisecond as other, false otherwise.

Implementation

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