copyWith method
NodeTooltipTheme<T>
copyWith({
- bool? useTooltip,
- TooltipPosition? position,
- EdgeInsetsGeometry? margin,
- double? verticalOffset,
- Duration? waitDuration,
- String? message,
- TextStyle? textStyle,
- InlineSpan? richMessage,
- InlineSpan? richMessageResolver(
- Node<
T> node
- Node<
- Color? backgroundColor,
- List<
BoxShadow> ? boxShadow,
Creates a copy of this theme with the given fields replaced with new values
Implementation
NodeTooltipTheme<T> copyWith({
bool? useTooltip,
TooltipPosition? position,
EdgeInsetsGeometry? margin,
double? verticalOffset,
Duration? waitDuration,
String? message,
TextStyle? textStyle,
InlineSpan? richMessage,
InlineSpan? Function(Node<T> node)? richMessageResolver,
Color? backgroundColor,
List<BoxShadow>? boxShadow,
}) {
return NodeTooltipTheme<T>(
useTooltip: useTooltip ?? this.useTooltip,
position: position ?? this.position,
margin: margin ?? this.margin,
verticalOffset: verticalOffset ?? this.verticalOffset,
waitDuration: waitDuration ?? this.waitDuration,
message: message ?? this.message,
textStyle: textStyle ?? this.textStyle,
richMessage: richMessage ?? this.richMessage,
richMessageResolver: richMessageResolver ?? this.richMessageResolver,
backgroundColor: backgroundColor ?? this.backgroundColor,
boxShadow: boxShadow ?? this.boxShadow,
);
}