copyWith method
Implementation
SideBarItem copyWith({
int? type,
IconData? icon,
String? customCanvasIcon,
bool? isScratch,
bool? isAction,
}) {
return SideBarItem(
type: type ?? this.type,
icon: icon ?? this.icon,
customCanvasIcon: customCanvasIcon ?? this.customCanvasIcon,
isAction: isAction ?? this.isAction,
isScratch: isScratch ?? this.isScratch,
);
}