MethodManager constructor

MethodManager({
  1. required String filePath,
  2. required String identifier,
})

Implementation

MethodManager({required this.filePath, required this.identifier}) : super() {
  final splits = identifier.split(".");
  if (splits.length >= 2) {
    className = splits.first;
    methodName = splits.last;
  } else {
    className = null;
    methodName = splits.last;
  }
  if (className == null || className!.isEmpty) {
    className = getFirstClassNameInFile(filePath);
  }
  assert(className != null);
  // assert(methodName != null);
  dataSingleton.update(
    filePath: filePath,
    identifier: identifier,
    fullIdentifier: '$className.$methodName',
    identifierFormat: IMethodManager.identifierFormat,
    manager: "MethodManager",
  );
}