color property
The color to render this box.
Implementation
Color? get color {
switch(analysis.testResult) {
case ScienceResult.extinct: return Colors.red;
case ScienceResult.extant: return Colors.green;
case ScienceResult.notPresent: return Colors.red;
case ScienceResult.inconclusive: return Colors.blueGrey;
case ScienceResult.loading: return null;
}
}