isPrivate method

bool isPrivate()

starts with '_'

Implementation

bool isPrivate() {
  if (isEmpty || trim() != this || contains(' ')) return false;
  return startsWith('_');
}