earlierDate method

DateTime earlierDate(
  1. DateTime other
)

Implementation

DateTime earlierDate(DateTime other) => isAfter(other) ? other : this;