toActiveInactive method

String toActiveInactive()

Returns 'Active' if true, 'Inactive' if false.

Example:

bool flag = true;
print(flag.toActiveInactive()); // Output: Active

Implementation

String toActiveInactive() => this ? 'Active' : 'Inactive';