toInt method

int toInt()

Creates an int from this bool.

Implementation

int toInt() => this ? 1 : 0;