copyWith method

TreeViewChild copyWith(
  1. TreeViewChild source, {
  2. bool? startExpanded,
  3. Widget? parent,
  4. List<Widget>? children,
  5. VoidCallback? onTap,
})

Implementation

TreeViewChild copyWith(
  TreeViewChild source, {
  bool? startExpanded,
  Widget? parent,
  List<Widget>? children,
  VoidCallback? onTap,
}) {
  return TreeViewChild(
    parent: parent ?? source.parent,
    children: children ?? source.children,
    startExpanded: startExpanded ?? source.startExpanded,
    onTap: onTap ?? source.onTap,
  );
}