OnStageTap typedef
OnStageTap =
void Function(StageTapEvent event)
Signature for displayed-state tap/double-tap handlers — both carry the same StageTapEvent payload.
Distinct from Origin's Origin.onTap (which is a StageTap, used to open
the un-displayed item onto the Stage). This one runs while the item is
already on stage and resolves through the cascade DisplayConfig.onTap /
DisplayConfig.onDoubleTap → Stage.onTap / Stage.onDoubleTap →
package default (no-op for onTap; toggle baseRect ↔ fit-cover-at-focal
for onDoubleTap).
The handler does not receive a BuildContext — consumers typically
define these callbacks in a build body where they already have one in
scope and can call Stage.of(context).dismiss() etc. directly.
Implementation
typedef OnStageTap = void Function(StageTapEvent event);