dismissReason static method
The CEP reason for a direct game's close. The native close button, the
system back and the skin's own close are the user's; a CTA handoff is
a CTA; anything else is a cancel. Matches Android's dismissReasonOf.
Implementation
static String dismissReason(String closeReason) => switch (closeReason) {
'user' || 'skin' || 'back' => 'userClose',
'cta' => 'ctaAction',
_ => 'cancelled',
};