toInt property

int get toInt

Returns 1 if the value is false otherwise 0 is returned.

Implementation

int get toInt => this != null && this! ? 1 : 0;