execute method Null safety

List execute(
  1. List results,
  2. Map<String, dynamic> passed
)
override

Implementation

List execute(List results, Map<String, dynamic> passed) {
  final returnList = [];
  results.forEach((element) {
    final newResult = value.execute([element], passed);
    if (newResult.isNotEmpty) {
      if (!(newResult.length == 1 && newResult.first == false)) {
        returnList.add(element);
      }
    }
  });
  return [returnList.isNotEmpty];
}