accessGetter

fun <T> accessGetter(methodName: String? = null): GetterAccessor<T>

A delegate that provides efficient accessing of a no-args getter via reflection.

Parameters

T

The type of the value returned by the getter.

methodName

The name of the getter. If null, will use the property name to form getName.