Returns 1 if the given value is true. Otherwise returns 0.
1
value
0
static int from(bool value) => value ? 1 : 0;