skip to Main Content

Creating a future list from a future in Flutter

I am trying to return a Future<List> in an async function, which is constructed when another Future completes. Future<List<String>> myFunc() async { <Future<List<String>> eventDescriptions; googleCalendarApi.events.list('primary').then((events) => { eventDescriptions = events.items.map((e) => e.description).toList(); } return eventDescriptions; I had assumed that the…

VIEW QUESTION

ERR_UNKNOWN_RL_SCHEME whatsapp link – Flutter

im trying to link whatsapp with this function, i already try many url options but nothing works static Future launchThisUrl(url) async { Uri dataUrl = Uri.parse(url!); if (await canLaunchUrl(dataUrl)) { await launchUrl(dataUrl); } else { throw 'Could not launch $dataUrl';…

VIEW QUESTION
Back To Top
Search