isPrivate property

  1. @override
bool isPrivate
inherited

Whether the element is private.

Private elements are visible only within the library in which they are declared.

Implementation

@override
bool get isPrivate {
  final name = this.name;
  if (name == null) {
    return true;
  }
  return Identifier.isPrivateName(name);
}