copyWith method
TreeNode
copyWith(
{ - String? id,
- String? label,
- IconData? iconData,
- Color? iconColor,
- bool? isFolder,
- bool? isExpanded,
- bool? isSelected,
- List<TreeNode>? children,
- dynamic data,
- NodeStateMode? stateMode,
})
Implementation
TreeNode copyWith({
String? id,
String? label,
IconData? iconData,
Color? iconColor,
bool? isFolder,
bool? isExpanded,
bool? isSelected,
List<TreeNode>? children,
dynamic data,
NodeStateMode? stateMode,
}) {
return TreeNode(
id: id ?? this.id,
label: label ?? this.label,
iconData: iconData ?? this.iconData,
iconColor: iconColor ?? this.iconColor,
isFolder: isFolder ?? this.isFolder,
isExpanded: isExpanded ?? this.isExpanded,
isSelected: isSelected ?? this.isSelected,
children: children ?? this.children,
data: data ?? this.data,
stateMode: stateMode ?? this.stateMode,
);
}