isAfter method

bool isAfter(
  1. TimeWrapper wrapper, {
  2. bool alsoEqual = true,
})

Implementation

bool isAfter(TimeWrapper wrapper, {bool alsoEqual = true}) {
  if (alsoEqual) {
    return toDateTime().isAfter(wrapper.toDateTime()) || toDateTime().isAtSameMomentAs(wrapper.toDateTime());
  }
  return toDateTime().isAfter(wrapper.toDateTime());
}