FunctionMetrics class
Metrics for a single function with file context.
Associates a MaintainabilityResult with its source location, enabling project-wide function tracking and comparison.
Use qualifiedName for unique identification across files.
Constructors
- FunctionMetrics({required String filePath, required String functionName, required MaintainabilityResult result})
-
const
Properties
- filePath → String
-
Path to the source file containing this function.
final
- functionName → String
-
Name of the function or method (e.g.,
mainorClassName.methodName).final - hashCode → int
-
The hash code for this object.
no setterinherited
- qualifiedName → String
-
no setter
- result → MaintainabilityResult
-
Detailed metrics for this function.
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited