isAfter method

bool isAfter(
  1. EtDatetime other
)
override

Returns true if current instance occurs after other.

var now = new EtDatetime.now();
var later = now.add(const Duration(seconds: 5));
assert(later.isAfter(now));
assert(!now.isBefore(now));

Implementation

bool isAfter(EtDatetime other) =>
    fixed > other.fixed && moment > other.moment;