copyWith method
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,
);
}