flutter check null value code example
Example 1: flutter check if any variable is null
int a;
int b = 1;
print([a,b].every((v) => v != null));
Example 2: flutter check if null
var value = maybeSomeNumber();
if (value != null) {
doSomething();
}