getPlatformWithId static method
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;
}