toYesNo property

String get toYesNo

Returns 'yes' if this boolean is true, and 'no' if this boolean is false.

Example: true.toYesNo -> 'yes'.

Implementation

String get toYesNo => this ? 'yes' : 'no';