copyWith method

MindMapData copyWith({
  1. String? id,
  2. String? title,
  3. String? description,
  4. List<MindMapData>? children,
  5. Color? color,
  6. Color? textColor,
  7. Color? borderColor,
  8. TextStyle? textStyle,
  9. Size? size,
  10. Map<String, dynamic>? customData,
})

데이터 복사를 위한 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,
  );
}