/// Flattens [inputs] and concatenates the elements. List concat(List> inputs) { final tmp = List.empty(growable: true); for (final input in inputs) { tmp.addAll(input); } return tmp; }