execute method Null safety

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

Implementation

List execute(List results, Map<String, dynamic> passed) {
  if (results.isEmpty) {
    return [false];
  } else {
    final executedValue = value.execute(results.toList(), passed);
    for (var v in executedValue) {
      if (notFoundInList(results, v)) {
        return [false];
      }
    }
    return [true];
  }
}