binaryText property

String get binaryText

Converts the nullable boolean to its binary representation as a string.

Returns '1' if the value is non-null and true, otherwise returns '0'.

Implementation

String get binaryText => (this ?? false) ? '1' : '0';