currentPackagePath property

String? get currentPackagePath

Current package-relative test file path, when known.

Implementation

String? get currentPackagePath =>
    _declarationStack.isEmpty ? null : _declarationStack.last.packagePath;