execute method Null safety

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

Implementation

List execute(List results, Map<String, dynamic> passed) {
  var executedValue = value.execute(results.toList(), passed);
  final finalResults = [];
  finalResults
    ..addAll(results.where((r) => notFoundInList(finalResults, r)))
    ..addAll(executedValue.where((v) => notFoundInList(finalResults, v)));
  return finalResults;
}