getBackgroundColor function

dynamic getBackgroundColor(
  1. TagType tagType
)

Implementation

getBackgroundColor(TagType tagType) {
  switch (tagType) {
    case TagType.done:
      return Colors.green[100];
    case TagType.inProgress:
      return Colors.blue[100];
    case TagType.delayed:
      return Colors.red[100];
    default:
      return Colors.white;
  }
}