lookup method Null safety

String? lookup (
  1. Object? value
)
inherited

Lookup from the Set interface. Not interesting for a String set.

Implementation

String? lookup(Object? value) => contains(value) ? value as String : null;