Nav constructor

Nav({
  1. required Widget icon,
  2. required String name,
  3. required String routeName,
  4. bool lastItem = false,
})

Implementation

Nav({
  required this.icon,
  required this.name,
  required this.routeName,
  this.lastItem = false
}) : super(key: GlobalKey<NavState>());