isPrivate property

  1. @override
bool get isPrivate
inherited

Whether this declaration is library private.

Always returns false for a library declaration, otherwise returns true if the declaration's name starts with an underscore character (_), and false if it doesn't.

Required capabilities: isPrivate does not require any capabilities.

Implementation

@override
bool get isPrivate => (_descriptor & constants.privateAttribute != 0);