copyWith method

NodeTooltipTheme<T> copyWith({
  1. bool? useTooltip,
  2. TooltipDirection? direction,
  3. TooltipAlignment? alignment,
  4. double? offset,
  5. double? crossAxisOffset,
  6. String? message,
  7. TextStyle? textStyle,
  8. WidgetBuilder? tooltipBuilder,
  9. WidgetBuilder? tooltipBuilderResolver(
    1. Node<T> node
    )?,
  10. Color? backgroundColor,
  11. double? elevation,
  12. List<BoxShadow>? boxShadow,
  13. BorderRadius? borderRadius,
  14. EdgeInsets? padding,
  15. JustTooltipController? controller,
  16. bool? enableTap,
  17. bool? enableHover,
  18. Duration? animationDuration,
  19. VoidCallback? onShow,
  20. VoidCallback? onHide,
  21. bool? interactive,
  22. Duration? waitDuration,
  23. Duration? showDuration,
  24. Color? borderColor,
  25. double? borderWidth,
  26. bool? showArrow,
  27. double? arrowBaseWidth,
  28. double? arrowLength,
  29. double? arrowPositionRatio,
  30. double? screenMargin,
  31. TooltipAnimation? animation,
  32. Curve? animationCurve,
  33. double? fadeBegin,
  34. double? scaleBegin,
  35. double? slideOffset,
  36. double? rotationBegin,
})

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

Implementation

NodeTooltipTheme<T> copyWith({
  bool? useTooltip,
  TooltipDirection? direction,
  TooltipAlignment? alignment,
  double? offset,
  double? crossAxisOffset,
  String? message,
  TextStyle? textStyle,
  WidgetBuilder? tooltipBuilder,
  WidgetBuilder? Function(Node<T> node)? tooltipBuilderResolver,
  Color? backgroundColor,
  double? elevation,
  List<BoxShadow>? boxShadow,
  BorderRadius? borderRadius,
  EdgeInsets? padding,
  JustTooltipController? controller,
  bool? enableTap,
  bool? enableHover,
  Duration? animationDuration,
  VoidCallback? onShow,
  VoidCallback? onHide,
  bool? interactive,
  Duration? waitDuration,
  Duration? showDuration,
  Color? borderColor,
  double? borderWidth,
  bool? showArrow,
  double? arrowBaseWidth,
  double? arrowLength,
  double? arrowPositionRatio,
  double? screenMargin,
  TooltipAnimation? animation,
  Curve? animationCurve,
  double? fadeBegin,
  double? scaleBegin,
  double? slideOffset,
  double? rotationBegin,
}) {
  return NodeTooltipTheme<T>(
    useTooltip: useTooltip ?? this.useTooltip,
    direction: direction ?? this.direction,
    alignment: alignment ?? this.alignment,
    offset: offset ?? this.offset,
    crossAxisOffset: crossAxisOffset ?? this.crossAxisOffset,
    message: message ?? this.message,
    textStyle: textStyle ?? this.textStyle,
    tooltipBuilder: tooltipBuilder ?? this.tooltipBuilder,
    tooltipBuilderResolver:
        tooltipBuilderResolver ?? this.tooltipBuilderResolver,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    elevation: elevation ?? this.elevation,
    boxShadow: boxShadow ?? this.boxShadow,
    borderRadius: borderRadius ?? this.borderRadius,
    padding: padding ?? this.padding,
    controller: controller ?? this.controller,
    enableTap: enableTap ?? this.enableTap,
    enableHover: enableHover ?? this.enableHover,
    animationDuration: animationDuration ?? this.animationDuration,
    onShow: onShow ?? this.onShow,
    onHide: onHide ?? this.onHide,
    interactive: interactive ?? this.interactive,
    waitDuration: waitDuration ?? this.waitDuration,
    showDuration: showDuration ?? this.showDuration,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    showArrow: showArrow ?? this.showArrow,
    arrowBaseWidth: arrowBaseWidth ?? this.arrowBaseWidth,
    arrowLength: arrowLength ?? this.arrowLength,
    arrowPositionRatio: arrowPositionRatio ?? this.arrowPositionRatio,
    screenMargin: screenMargin ?? this.screenMargin,
    animation: animation ?? this.animation,
    animationCurve: animationCurve ?? this.animationCurve,
    fadeBegin: fadeBegin ?? this.fadeBegin,
    scaleBegin: scaleBegin ?? this.scaleBegin,
    slideOffset: slideOffset ?? this.slideOffset,
    rotationBegin: rotationBegin ?? this.rotationBegin,
  );
}