isHosted property

bool get isHosted

True for ordinary pub.dev-hosted packages (as opposed to sdk, path, or git dependencies, which pub.dev has no meaningful listing for).

Implementation

bool get isHosted => source == 'hosted';