onAction method

void onAction(
  1. Reaction reaction
)

Implementation

void onAction(Reaction reaction) {
  switch (reaction.action.type) {
    case ActionType.link:
      launchUrl(Uri.parse((reaction.action as LinkAction).url));
    default:
      break;
  }
}