mapIndexedWhereNotNullAndNotEmptyAndNotZeroAndNotFalseAndNotTrueAndNotNegativeAndNotZeroStringAndNotZeroDoubleAndNotZeroInt<T> method

List<E> mapIndexedWhereNotNullAndNotEmptyAndNotZeroAndNotFalseAndNotTrueAndNotNegativeAndNotZeroStringAndNotZeroDoubleAndNotZeroInt<T>(
  1. T f(
    1. E value,
    2. int index
    )
)

Implementation

List<E>
    mapIndexedWhereNotNullAndNotEmptyAndNotZeroAndNotFalseAndNotTrueAndNotNegativeAndNotZeroStringAndNotZeroDoubleAndNotZeroInt<
        T>(T Function(E value, int index) f) {
  var i = 0;
  return map((e) => f(e, i++))
      .whereType<E>()
      .where((element) =>
          element != null &&
          element.toString().isNotEmpty &&
          element != 0 &&
          element != false &&
          element != true &&
          element != -1 &&
          element != "0" &&
          element != 0.0 &&
          element != 0)
      .toList();
}