toInt property

int get toInt

转为整数:true → 1,false → 0。

Implementation

int get toInt => this ? 1 : 0;