lastIndexOf function

  1. @Deprecated("Use inbuilt List.lastIndexOf instead")
int lastIndexOf(
  1. List list,
  2. dynamic value, {
  3. dynamic fromIndex,
})

Implementation

@Deprecated("Use inbuilt List.lastIndexOf instead")
int lastIndexOf(List list, dynamic value, {dynamic fromIndex}) {
  fromIndex ??= list.length - 1;
  return list.lastIndexOf(value, fromIndex);
}