toActiveInactive method
Returns 'Active' if true, 'Inactive' if false.
Example:
bool flag = true;
print(flag.toActiveInactive()); // Output: Active
Implementation
String toActiveInactive() => this ? 'Active' : 'Inactive';
Returns 'Active' if true, 'Inactive' if false.
Example:
bool flag = true;
print(flag.toActiveInactive()); // Output: Active
String toActiveInactive() => this ? 'Active' : 'Inactive';