ConstructorManager constructor
ConstructorManager(
{ - required String filePath,
- required String identifier,
})
Implementation
ConstructorManager({required this.filePath, required this.identifier})
: super() {
final splits = identifier.replaceAll(RegExp(r'\s+'), "").split(".");
if (splits.length >= 2) {
className = splits.first;
constructorName = splits.last;
} else {
className = null;
constructorName = splits.last;
}
if (className == null || className!.isEmpty) {
className = getFirstClassNameInFile(filePath);
}
assert(className != null);
// fullIdentifier = '$className.$constructorName';
dataSingleton.update(
manager: "ConstructorManager",
filePath: filePath,
identifier: identifier,
fullIdentifier: '$className.$constructorName',
identifierFormat: IConstructorManager.identifierFormat,
);
// assert(constructorName != null);
}