Currently splitter supports dragging, and it's possible to program hiding to a separate button. But a common affordance is tapping on a splitter to hide/unhide.
It would make sense to include this, not that draggesture is capable of deciding between a tap and a drag automatically.