byId static method

DevicePreset? byId(
  1. String id
)

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;
}