copyWith method
NodeTooltipTheme<T>
copyWith({
- bool? useTooltip,
- TooltipDirection? direction,
- TooltipAlignment? alignment,
- double? offset,
- double? crossAxisOffset,
- String? message,
- TextStyle? textStyle,
- WidgetBuilder? tooltipBuilder,
- WidgetBuilder? tooltipBuilderResolver(
- Node<
T> node
- Node<
- 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,
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,
);
}