copyWith method

HoverCardTheme copyWith({
  1. ValueGetter<Duration?>? debounce,
  2. ValueGetter<Duration?>? wait,
  3. ValueGetter<AlignmentGeometry?>? popoverAlignment,
  4. ValueGetter<AlignmentGeometry?>? anchorAlignment,
  5. ValueGetter<Offset?>? popoverOffset,
  6. ValueGetter<HitTestBehavior?>? behavior,
})

Implementation

HoverCardTheme copyWith({
  ValueGetter<Duration?>? debounce,
  ValueGetter<Duration?>? wait,
  ValueGetter<AlignmentGeometry?>? popoverAlignment,
  ValueGetter<AlignmentGeometry?>? anchorAlignment,
  ValueGetter<Offset?>? popoverOffset,
  ValueGetter<HitTestBehavior?>? behavior,
}) {
  return HoverCardTheme(
    debounce: debounce == null ? this.debounce : debounce(),
    wait: wait == null ? this.wait : wait(),
    popoverAlignment:
        popoverAlignment == null ? this.popoverAlignment : popoverAlignment(),
    anchorAlignment:
        anchorAlignment == null ? this.anchorAlignment : anchorAlignment(),
    popoverOffset:
        popoverOffset == null ? this.popoverOffset : popoverOffset(),
    behavior: behavior == null ? this.behavior : behavior(),
  );
}