toBackWhere method

List<T> toBackWhere(
  1. bool test(
    1. T
    )
)

Implementation

List<T> toBackWhere(bool Function(T) test) {
  int at = indexWhere(test);

  if (at != -1) {
    T element = removeAt(at);
    add(element);
  }

  return this;
}