mergeTapOutsideHandler function

void Function(PointerDownEvent)? mergeTapOutsideHandler(
  1. void a(
    1. PointerDownEvent
    )?,
  2. void b(
    1. PointerDownEvent
    )?
)

Implementation

void Function(PointerDownEvent)? mergeTapOutsideHandler(
  void Function(PointerDownEvent)? a,
  void Function(PointerDownEvent)? b,
) {
  if (a == null && b == null) {
    return null;
  }
  if (a == null) {
    return b;
  }
  if (b == null) {
    return a;
  }
  return (it) {
    a(it);
    b(it);
  };
}