toInt method

int toInt()

Convert bool to int return 1 if true, 0 if false

Implementation

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