copyWith method

DrawerSubMenuMenuItem copyWith({
  1. String? title,
  2. String? route,
  3. dynamic onTap()?,
  4. bool? isVisible,
  5. String? iconUrl,
  6. bool? isSelected,
})

Implementation

DrawerSubMenuMenuItem copyWith({String? title, String? route, Function()? onTap, bool? isVisible, String? iconUrl, bool? isSelected}) {
  return DrawerSubMenuMenuItem(
    title: title ?? this.title,
    route: route ?? this.route,

    isVisible: isVisible ?? this.isVisible,
    iconUrl: iconUrl ?? this.iconUrl,
    isSelected: isSelected ?? this.isSelected,
  );
}