MenuItem constructor

const MenuItem({
  1. Key? key,
  2. IconData? iconData,
  3. required String title,
  4. bool isCondensed = false,
  5. String? route,
  6. dynamic onTap(
    1. String route
    )?,
})

Implementation

const MenuItem({
  Key? key,
  this.iconData,
  required this.title,
  this.isCondensed = false,
  this.route,
  this.onTap,
}) : super(key: key);