Fixed null safety
This commit is contained in:
parent
9c2f0cfa28
commit
0bf4134792
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue