FilePathExtractor class final

Extracts file and directory paths from the current stack trace.

The FilePathExtractor class utilizes an IStackTraceFetcher to retrieve stack traces and extract file paths based on platform-specific patterns.

Constructors

FilePathExtractor.new({IStackTraceFetcher? stackTraceFetcher})
Constructs a FilePathExtractor with an optional custom IStackTraceFetcher. If no custom fetcher is provided, a default StackTraceFetcher is used.
const

Properties

directoryPath String
Retrieves the directory path from the current stack trace.
no setter
filePath String
Retrieves the file path from the current stack trace.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

isWindows bool
Indicates whether the current platform is Windows.
final