symbolToKey static method

String symbolToKey(
  1. Symbol symbol
)

Implementation

static String symbolToKey(Symbol symbol) {
  var name = symbol.toString();
  var regExp = RegExp(r'\("(.+)"\)');
  var match = regExp.firstMatch(name)?.group(1);
  match = match != null ? "#$match" : null;
  return match ?? name;
}