isPrivate property

bool isPrivate

Whether this instance is visible outside the same library.

Builds tools may use this to fail when the symbol is expected to be importable (i.e. isn't used with part of).

Implementation

bool get isPrivate =>
    source.fragment.startsWith('_') || accessor.startsWith('_');