copyWith method

TreeThemeData copyWith({
  1. TextStyle? textStyle,
  2. Color? color,
  3. Color? hoverColor,
  4. Color? highlightColor,
})

Makes a copy of TreeThemeData overwriting selected fields.

Implementation

TreeThemeData copyWith({
  TextStyle? textStyle,
  Color? color,
  Color? hoverColor,
  Color? highlightColor,
}) {
  return TreeThemeData(
    textStyle: textStyle ?? this.textStyle,
    color: color ?? this.color,
    hoverColor: hoverColor ?? this.hoverColor,
    highlightColor: highlightColor ?? this.highlightColor,
  );
}