isNull property

bool isNull

Whether this value corresponds to JavaScript null.

Note

Currently, there is no way to distinguish between JavaScript undefined and JavaScript null when compiling to Wasm. Therefore, this getter should only be used for code that compiles to JavaScript and will throw when compiling to Wasm.

Implementation

external bool get isNull;