Fixed null safety
This commit is contained in:
parent
0bf4134792
commit
de6521158e
1 changed files with 2 additions and 2 deletions
|
@ -196,8 +196,8 @@ abstract class Parser<T> {
|
||||||
v.isEmpty ? [] : (r.value?[0] == null ? [] : [r.value?[0]]);
|
v.isEmpty ? [] : (r.value?[0] == null ? [] : [r.value?[0]]);
|
||||||
var out = List<T>.from(preceding);
|
var out = List<T>.from(preceding);
|
||||||
if (r.value?[1] != null) {
|
if (r.value?[1] != null) {
|
||||||
(r.value?[1] as List<T>).forEach((element) {
|
r.value?[1].forEach((element) {
|
||||||
out.add(element);
|
out.add(element as T);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|
Loading…
Reference in a new issue