toString method

  1. @override
String toString()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final buffer = StringBuffer();
  if (data.isNotEmpty) buffer
    ..writeAll(data.map<String>((item) => item.toString(asDefinition: true)), "\n")..writeln()
    ..writeAll(data.map<String>((item) => item.toString()), "\n")..writeln();

  buffer..writeln("${Token.functionsFound}:$found")..write("${Token.functionsHit}:$hit");
  return buffer.toString();
}