lastIndexOf method Null safety

int lastIndexOf(
  1. T element
)

Returns the index of the last occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.

Implementation

int lastIndexOf(T element);