stateColor property
Color
get
stateColor
Implementation
Color get stateColor {
switch (this) {
case InvoiceState.UNPAID:
return Colors.grey;
case InvoiceState.PAID:
return Colors.green;
case InvoiceState.PENDING:
return Colors.orange;
case InvoiceState.CANCELLED:
return Colors.red;
}
}