toNonNull property

bool get toNonNull

转化为非空布尔型,如果为空则返回false

Implementation

bool get toNonNull => this ?? false;