isValid property

bool get isValid

Whether this handle is valid (i.e., not one of the invalid handle values).

Implementation

bool get isValid => this != Pointer.fromAddress(0);