Menu constructor

Menu(
  1. int id,
  2. IconData icon,
  3. String title, [
  4. bool newPage = false,
])

Implementation

Menu(int id, IconData icon, String title, [bool newPage = false]) {
  this.id = id;
  this.title = title;
  this.icon = icon;
  this.type = "PARENT";
  this.newPage = newPage;
}