copyWith method

NodeTooltipTheme<T> copyWith({
  1. bool? useTooltip,
  2. TooltipPosition? position,
  3. EdgeInsetsGeometry? margin,
  4. double? verticalOffset,
  5. Duration? waitDuration,
  6. String? message,
  7. TextStyle? textStyle,
  8. InlineSpan? richMessage,
  9. InlineSpan? richMessageResolver(
    1. Node<T> node
    )?,
  10. Color? backgroundColor,
  11. 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,
  );
}