copyWith method

TreeViewState copyWith({
  1. List<TreeNode>? rootNodes,
  2. NetworkProcess? status,
})

Implementation

TreeViewState copyWith({
  List<TreeNode>? rootNodes,
  NetworkProcess? status,
}) {
  return TreeViewState(
    rootNodes: rootNodes ?? this.rootNodes,
    status: status ?? this.status,
  );
}