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 [true];
  }
  results.removeWhere((element) => element == false);
  return [results.length == 0];
}