nameEndsWith<T extends DartElement> static method

Validation<T> nameEndsWith<T extends DartElement>(
  1. String str
)

Implementation

static Validation<T> nameEndsWith<T extends DartElement>(String str) {
  return _createValidation(
    (el) => el.name.endsWith(str),
    'have name ending with "$str"',
  );
}