firstWhereOrNull method

dynamic firstWhereOrNull(
  1. BuildContext context,
  2. List list,
  3. int loop
)

Implementation

dynamic firstWhereOrNull(BuildContext context, List<dynamic> list, int loop) {
  return list.indexWhere((e) =>
      condition.getValue<bool>(context, () => true, () => false, loop, e));
}