toString method
Returns a string representation of this object.
The asDefinition
parameter indicates whether to return the function definition (i.e. name and line number)
instead of its data (i.e. name and execution count).
Implementation
@override
String toString({bool asDefinition = false}) {
final token = asDefinition ? Token.functionName : Token.functionData;
final number = asDefinition ? lineNumber : executionCount;
return "$token:$number,$functionName";
}