copyWith method

TreeViewTheme copyWith({
  1. Color? lineColor,
  2. LineStyle? lineStyle,
  3. double? lineThickness,
  4. double? indent,
  5. bool? roundLineCorners,
  6. TextDirection? direction,
})

Returns a copy of this object with new attributes.

Implementation

TreeViewTheme copyWith({
  Color? lineColor,
  LineStyle? lineStyle,
  double? lineThickness,
  double? indent,
  bool? roundLineCorners,
  TextDirection? direction,
}) {
  return TreeViewTheme(
    lineColor: lineColor ?? this.lineColor,
    lineStyle: lineStyle ?? this.lineStyle,
    lineThickness: lineThickness ?? this.lineThickness,
    indent: indent ?? this.indent,
    roundLineCorners: roundLineCorners ?? this.roundLineCorners,
    direction: direction ?? this.direction,
  );
}