copyWith method

FolderNodeTheme<T> copyWith({
  1. Widget? widget,
  2. Widget? widgetResolver(
    1. Node<T> node
    )?,
  3. Widget? openWidget,
  4. Widget? openWidgetResolver(
    1. Node<T> node
    )?,
  5. double? width,
  6. double? height,
  7. EdgeInsets? padding,
  8. EdgeInsets? margin,
  9. TextStyle? textStyle,
  10. TextStyle? textStyleResolver(
    1. Node<T> node
    )?,
  11. String? labelResolver(
    1. Node<T> node
    )?,
  12. Color? hoverColor,
  13. Color? splashColor,
  14. Color? highlightColor,
  15. NodeTooltipTheme<T>? tooltipTheme,
})

Creates a copy of this theme with the given fields replaced with new values

Implementation

FolderNodeTheme<T> copyWith({
  Widget? widget,
  Widget? Function(Node<T> node)? widgetResolver,
  Widget? openWidget,
  Widget? Function(Node<T> node)? openWidgetResolver,
  double? width,
  double? height,
  EdgeInsets? padding,
  EdgeInsets? margin,
  TextStyle? textStyle,
  TextStyle? Function(Node<T> node)? textStyleResolver,
  String? Function(Node<T> node)? labelResolver,
  Color? hoverColor,
  Color? splashColor,
  Color? highlightColor,
  NodeTooltipTheme<T>? tooltipTheme,
}) {
  return FolderNodeTheme<T>(
    widget: widget ?? this.widget,
    widgetResolver: widgetResolver ?? this.widgetResolver,
    openWidget: openWidget ?? this.openWidget,
    openWidgetResolver: openWidgetResolver ?? this.openWidgetResolver,
    width: width ?? this.width,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    textStyle: textStyle ?? this.textStyle,
    textStyleResolver: textStyleResolver ?? this.textStyleResolver,
    labelResolver: labelResolver ?? this.labelResolver,
    hoverColor: hoverColor ?? this.hoverColor,
    splashColor: splashColor ?? this.splashColor,
    highlightColor: highlightColor ?? this.highlightColor,
    tooltipTheme: tooltipTheme ?? this.tooltipTheme,
  );
}