toNonNull property

int get toNonNull

转化为非空整型,如果为空则返回0

Implementation

int get toNonNull => this ?? 0;