copyWith method

HoverTooltip copyWith({
  1. int? pos,
  2. int? end,
  3. TooltipView create(
    1. BuildContext context
    )?,
  4. bool? above,
  5. bool? strictSide,
  6. bool? arrow,
  7. bool? clip,
})

Create a copy with modified values.

Implementation

HoverTooltip copyWith({
  int? pos,
  int? end,
  TooltipView Function(BuildContext context)? create,
  bool? above,
  bool? strictSide,
  bool? arrow,
  bool? clip,
}) {
  return HoverTooltip(
    pos: pos ?? this.pos,
    end: end ?? this.end,
    create: create ?? this.create,
    above: above ?? this.above,
    strictSide: strictSide ?? this.strictSide,
    arrow: arrow ?? this.arrow,
    clip: clip ?? this.clip,
  );
}