displayName method

String? displayName()

Implementation

String? displayName() {
  var txt = gameRef.options.textGetter.call(vertex);
  return '${vertex.id}${txt != vertex.id ? " ($txt) " : ""}';
}