byNameOrNull method

T? byNameOrNull(
  1. String? name
)

Implementation

T? byNameOrNull(String? name) => name == null ? null : asNameMap()[name];