Fixed null safety

This commit is contained in:
thomashii 2021-03-21 08:52:58 +08:00
parent 9c2f0cfa28
commit 0bf4134792

View file

@ -196,7 +196,9 @@ abstract class Parser<T> {
v.isEmpty ? [] : (r.value?[0] == null ? [] : [r.value?[0]]);
var out = List<T>.from(preceding);
if (r.value?[1] != null) {
out.addAll(r.value?[1] as List<T>);
(r.value?[1] as List<T>).forEach((element) {
out.add(element);
});
}
return out;
} else {