fromCode static method
Looks a colour up by code; null if unknown.
Implementation
static IntentColor? fromCode(int code) {
for (final c in values) {
if (c.code == code) return c;
}
return null;
}
Looks a colour up by code; null if unknown.
static IntentColor? fromCode(int code) {
for (final c in values) {
if (c.code == code) return c;
}
return null;
}