toEnabledDisabled method

String toEnabledDisabled()

Converts the boolean to a string representation: 'Enabled' for true, 'Disabled' for false.

Example:

bool flag = true;
print(flag.toEnabledDisabled()); // Output: Enabled

Implementation

String toEnabledDisabled() => this ? 'Enabled' : 'Disabled';