toInt method
Converts the boolean value to an integer.
Returns 1 if the value is true, otherwise returns 0.
Implementation
int toInt() => validate().toInt();
Converts the boolean value to an integer.
Returns 1 if the value is true, otherwise returns 0.
int toInt() => validate().toInt();