ClassManager constructor
ClassManager(
{ - required String filePath,
- required String identifier,
})
Implementation
ClassManager({required this.filePath, required this.identifier}) : super() {
final splits = identifier.split(".");
if (splits.length >= 2) {
className = splits.first;
} else {
className = null;
}
if (className == null || className!.isEmpty) {
className = getFirstClassNameInFile(filePath);
}
assert(className != null);
dataSingleton.update(
manager: "ClassManager",
filePath: filePath,
identifier: identifier,
fullIdentifier: '$className',
identifierFormat: IClassManager.identifierFormat,
);
}