isAfter method Null safety

  1. @override
bool isAfter(
  1. DateTime other
)
override

Returns true if this occurs after other.

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

final berlinWallFell = TZDateTime(UTC, 1989, 11, 9);
final moonLanding    = TZDateTime(UTC, 1969, 7, 20);

assert(berlinWallFell.isAfter(moonLanding) == true);

Implementation

@override
bool isAfter(DateTime other) => _native.isAfter(_toNative(other));