extractFeatureNameFromImport function
Implementation
String? extractFeatureNameFromImport(String importUri) {
// importUri is typically like: 'package:project/features/product/data/...'
return _importFeatureCache.putIfAbsent(importUri, () {
final match = _featuresPathRegExp.firstMatch(importUri);
return match != null && match.groupCount >= 1 ? match.group(1) : null;
});
}