copyWith method
TreeViewChild
copyWith(
- TreeViewChild source, {
- bool? startExpanded,
- Widget? parent,
- List<
Widget> ? children, - 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,
);
}