isGenTypeName method

bool isGenTypeName()

is without any nullability signs. can be private or public.

Implementation

bool isGenTypeName() {
  if (isEmpty || trim() != this || contains(' ')) return false;
  if (endsWith('?')) return false;
  return true;
}