last

open fun <T> last(clazz: Class<T>): T?

Get the last object of the given type, or null if none.