find method

MenuElement? find({
  1. required int uniqueId,
})

Implementation

MenuElement? find({required int uniqueId}) {
  if (uniqueId == this.uniqueId) {
    return this;
  } else {
    return null;
  }
}