RouteMenuItem constructor

RouteMenuItem(
  1. RouteInfo routeInfo, {
  2. bool prominent = false,
})

Implementation

RouteMenuItem(this.routeInfo, {bool prominent = false}) {
  this.menuText = routeInfo.screenName;
  this.onTap = () {
    currentRouteSingleton.navigate(routeInfo);
  };
  this.prominent = prominent;
}