api / org.gradle.api / NamedDomainObjectCollection / findByName

findByName

@Nullable abstract fun findByName(name: String): T

Locates an object by name, returning null if there is no such object.

Parameters

name - The object name

Return
The object with the given name, or null if there is no such object in this collection.