byId static method
Returns the built-in preset with the given id, or null.
Implementation
static DevicePreset? byId(String id) {
for (final DevicePreset preset in all) {
if (preset.id == id) {
return preset;
}
}
return null;
}
Returns the built-in preset with the given id, or null.
static DevicePreset? byId(String id) {
for (final DevicePreset preset in all) {
if (preset.id == id) {
return preset;
}
}
return null;
}