cryptoColorFromId static method
Implementation
static MaterialColor cryptoColorFromId(int id) {
if (id == 0) {
return Colors.blue;
} else if (id == 1) {
return Colors.red;
} else if (id == 2) {
return Colors.green;
} else if (id == 3) {
return Colors.purple;
} else if (id == 4) {
return Colors.yellow;
}
throw Exception("Invalid id");
}