Returns 1 if true and 0 otherwise.
1
0
See Integers.toBool.
true.toInt(); // 1 false.toInt(); // 0
@useResult int toInt() => this ? 1 : 0;