toInt property

int get toInt

Returns 1 if the value is true otherwise 0 is returned.

Implementation

int get toInt => toNullableInt ?? 0;