findLast_On_LineNumber function

int? findLast_On_LineNumber(
  1. String pathOfSourceCode
)

Implementation

int? findLast_On_LineNumber(String pathOfSourceCode) {
  // Replace this with your actual file path
  // final pathOfSourceCode = 'lib/bloc/product_test_bloc.dart';

  try {
    final lineNumber = _findLastOnLineNumber(pathOfSourceCode);
    // print('Found last on<...> ending at line: $lineNumber');
    // print(lineNumber);
    return lineNumber;
  } catch (e) {
    print('Error: $e');
  }
  return null;
}