toInt property
int
get
toInt
Converts the boolean value to an integer.
Returns 1 if the value is true, otherwise returns 0.
Implementation
int get toInt => this != null && this! ? 1 : 0;
Converts the boolean value to an integer.
Returns 1 if the value is true, otherwise returns 0.
int get toInt => this != null && this! ? 1 : 0;