operator [] method

ProjectIdeaItem? operator [](
  1. String id
)

The item with id, or null when the Project Idea has none.

Implementation

ProjectIdeaItem? operator [](String id) {
  for (final i in items) {
    if (i.id == id) return i;
  }
  return null;
}