how to check null flutter code example Example: flutter check if null var value = maybeSomeNumber(); if (value != null) { doSomething(); }