toKey static method

String toKey(
  1. Type type,
  2. AFID? id
)

Implementation

static String toKey(Type type, AFID? id) {
  final sb = StringBuffer();
  final id2 = id;
  if(id2 != null) {
    sb.write(id2.code);
  } else {
    sb.write(type.toString());
  }
  return sb.toString();
}