void main() {
var status = Status.Overdue;
if (status == Status.Sent) {
print("Sent");
} else if (status == Status.Paid) {
print("Paid");
} else if (status == Status.Overdue) {
print("Overdue");
} else {
print("Void");
}
}
enum Status { Sent, Paid, Overdue, Void }
Output
Overdue