errorCodeByUniqueName function Null safety

ErrorCode? errorCodeByUniqueName(
  1. String uniqueName
)

Return the ErrorCode with the given uniqueName, or null if not found.

Implementation

ErrorCode? errorCodeByUniqueName(String uniqueName) {
  return _uniqueNameToCodeMap[uniqueName];
}