isAtSameMomentAs method Null safety

bool isAtSameMomentAs(
  1. HijriDateTime other
)

Returns true if this occurs at the same moment as other.

The comparison is independent of whether the time is in UTC or in the local time zone.

Implementation

bool isAtSameMomentAs(HijriDateTime other) {
  return _date.millisecondsSinceEpoch == other._date.millisecondsSinceEpoch;
}