fileInfo property

List<String> get fileInfo

Retrieves the file information from the stack trace.

This includes the file path, line number, and column number. Returns a list of strings containing the file path, line number, and column number.

Implementation

List<String> get fileInfo {
  final String traceString = _trace.toString().split('\n')[0];
  final int indexOfFile = traceString.indexOf(RegExp(r'file://'));
  return traceString.substring(indexOfFile + 'file://'.length).split(':');
}