createTwitterTweet method
Create a Twitter tweet on Twitter app method.
The method required a title for the Tweet.
Besides, you can attach an url using attachedUrl property, add hashtags for the Tweet using hashtags property,
add accounts related to the content of the shared URI related property and attribute the source of a Tweet to a Twitter username
using via property.
Working on: Android and iOS platforms.
Implementation
Future<dynamic> createTwitterTweet({
required String title,
String? attachedUrl,
List<String>? hashtags,
String? via,
List<String>? related,
}) async {
if (Platform.isIOS) return;
return _channel.invokeMethod(
'createTwitterTweet',
<String, dynamic>{
'title': title,
'attachedUrl': attachedUrl,
'hashtags': hashtags,
'via': via,
'related': related,
},
);
}