isAfterWithPrecision method

bool isAfterWithPrecision(
  1. Hora other, {
  2. required TimePrecision precision,
})

Checks if this date is after another with the given precision.

Implementation

bool isAfterWithPrecision(Hora other, {required TimePrecision precision}) {
  final thisTruncated = truncateTo(precision);
  final otherTruncated = other.truncateTo(precision);
  return thisTruncated.isAfter(otherTruncated);
}