copyWith method
데이터 복사를 위한 copyWith 메소드
Implementation
MindMapData copyWith({
String? id,
String? title,
String? description,
List<MindMapData>? children,
Color? color,
Color? textColor,
Color? borderColor,
TextStyle? textStyle,
Size? size,
Map<String, dynamic>? customData,
}) {
return MindMapData(
id: id ?? this.id,
title: title ?? this.title,
description: description ?? this.description,
children: children ?? this.children,
color: color ?? this.color,
textColor: textColor ?? this.textColor,
borderColor: borderColor ?? this.borderColor,
textStyle: textStyle ?? this.textStyle,
size: size ?? this.size,
customData: customData ?? this.customData,
);
}