extractKeyValue static method

String? extractKeyValue(
  1. Key? key
)

Implementation

static String? extractKeyValue(Key? key) {
  if (key is ValueKey) {
    return "[<'${key.value.toString()}'>]";
  } else if (key != null) {
    return key.toString();
  }
  return null;
}