floaterStoryActionScope method

EngageActionScope floaterStoryActionScope(
  1. BuildContext context
)

Action bindings for content inside a story floater.

Overrides dismiss for the same two reasons the PiP's scope does: the window is mounted above the app's Navigator, so there is no route to pop, and Hide on a floater means "end this showing", not "pop something".

Implementation

EngageActionScope floaterStoryActionScope(BuildContext context) =>
    EngageActionScope.fromContext(
      context,
      dismiss: () =>
          _floaterStoryOrchestrator.dismiss(PipDismissReason.userClose),
    );