getPlatformWithId static method

SharePlatform getPlatformWithId(
  1. int id
)

Implementation

static SharePlatform getPlatformWithId(int id) {
  if (id == wechatSession.id) return wechatSession;
  if (id == wechatTimeline.id) return wechatTimeline;
  if (id == facebook.id) return facebook;
  if (id == twitter.id) return twitter;
  if (id == whatsApp.id) return whatsApp;
  if (id == line.id) return line;
  return native;
}