toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final List<String> pairs = <String>[];
  final Map<String, dynamic> dataMap = getDataMap();
  final List<String> sortedKeys = dataMap.keys.toList()..sort();
  for (String key in sortedKeys)
    pairs.add('$key: ${dataMap[key]}');
  return '$runtimeType(${pairs.join(', ')})';
}