copyWith method

TreeConfiguration copyWith({
  1. TextStyle? titleStyle,
  2. double? nodeHeight,
  3. Widget? prefixIcon,
  4. Duration? animatedDuration,
  5. bool? showCheckbox,
  6. bool? animatePrefixIcon,
})

Implementation

TreeConfiguration copyWith({
  TextStyle? titleStyle,
  double? nodeHeight,
  Widget? prefixIcon,
  Duration? animatedDuration,
  bool? showCheckbox,
  bool? animatePrefixIcon,
}) {
  return TreeConfiguration(
    titleStyle: titleStyle ?? this.titleStyle,
    nodeHeight: nodeHeight ?? this.nodeHeight,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    animatedDuration: animatedDuration ?? this.animatedDuration,
    showCheckbox: showCheckbox ?? this.showCheckbox,
    animatePrefixIcon: animatePrefixIcon ?? this.animatePrefixIcon,
  );
}