copyWith method
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,
);
}