verifyDoesNotEndWith method

void verifyDoesNotEndWith(
  1. String value,
  2. String excluded
)

Implementation

void verifyDoesNotEndWith(String value, String excluded) {
  if(value.endsWith(excluded)) {
    throwUsageError("Please do not add '$excluded' to the end of $value, AFib will add it for you");
  }
}