copyWith method

SideBarItem copyWith({
  1. int? type,
  2. IconData? icon,
  3. String? customCanvasIcon,
  4. bool? isScratch,
  5. bool? isAction,
})

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