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.length < 2) {
    return [];
  } else {
    results.removeAt(0);
    return results;
  }
}