toInt property
int
get
toInt
convert bool
to int with value 0
or 1
based on boolean value
Implementation
int get toInt => this! ? 1 : 0;
convert bool
to int with value 0
or 1
based on boolean value
int get toInt => this! ? 1 : 0;