findLastConstFactory function

int? findLastConstFactory(
  1. String pathOfSourceCode
)

Implementation

int? findLastConstFactory(String pathOfSourceCode) {
  try {
    final lineNumber = _findLastConstFactoryLineNumber(pathOfSourceCode);
    // print('Found last const factory ending at line: ');
    // print(lineNumber);
    return lineNumber;
  } catch (e) {
    print('Error: $e');
  }
  return null;
}