isBefore method

ContractValidations isBefore(
  1. DateTime startDate,
  2. DateTime endDate,
  3. String property,
  4. String message,
)

Implementation

ContractValidations isBefore(
    DateTime startDate, DateTime endDate, String property, String message) {
  if (!startDate.isBefore(endDate)) {
    addNotifications(
        ValidationNotification(property: property, message: message));
  }
  return this;
}