The label setLabel gave resource, or null when it has none.
resource
String? labelOf(Object resource) => _labels[resource];