Last active
April 12, 2023 13:03
-
-
Save hardikm9850/bd7ea09980db34e30d97bfab183efd9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() async { | |
var tweetId = 12345; | |
// Get tweet details by tweet Id | |
final networkData = await fetchTweetById(tweetId); | |
final jsonData = jsonDecode(networkData); | |
} | |
Future<Tweet> fetchTweetById(int tweetId) async { | |
final url = Uri.parse("www.twitter.com" + "/$tweetId"); | |
final response = await http.get(url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment