api / org.gradle.api.model / ObjectFactory / listProperty

listProperty

abstract fun <T : Any> listProperty(elementType: Class<T>): ListProperty<T>

Creates a ListProperty implementation to hold a List of the given element type. The property with have an empty list as its initial value.

The implementation will return immutable List values from its query methods.

Parameters

elementType - The type of element.

- The type of element.

Return
The property. Never returns null;

Since
4.3