find static method

ReplitCodeLanguage? find(
  1. String? id
)

The language for id — or an alias, case-insensitively — and null when unknown: the caller renders plain, never an error.

Implementation

static ReplitCodeLanguage? find(String? id) {
  if (id == null) return null;
  return _registry[id.trim().toLowerCase()];
}