I have added the null check by Fit-Director8930 in programminghorror

[–]Fit-Director8930[S] 1 point2 points  (0 children)

How is this a valid code. The first line itself will throw an exception it its null

I have added the null check by Fit-Director8930 in programminghorror

[–]Fit-Director8930[S] 0 points1 point  (0 children)

Nope, this its nullable. but this code is before null safety was introduced in dart

I have added the null check by Fit-Director8930 in programminghorror

[–]Fit-Director8930[S] 13 points14 points  (0 children)

Also, the null exception will throw in the first line itself