onShareTimeline static method
Implementation
static Map onShareTimeline(JSObject detail) {
final currentRoute = MPNavigatorObserver.currentRoute;
if (currentRoute != null &&
_routeShareInfos[currentRoute.hashCode] != null) {
final appShareInfo = _routeShareInfos[currentRoute.hashCode]!;
return {
"title": appShareInfo.title,
"query": "${(() {
final map = appShareInfo.query;
String query = "";
map.forEach((key, value) {
query += "$key=${Uri.encodeFull(value)}&";
});
return query;
})()}",
};
} else {
return {};
}
}