Solution for "use json file in flutter"

Future<String>_loadFromAsset() async { return await rootBundle.loadString("assets/quiz.json"); } Future parseJson() async { String jsonString = await _loadFromAsset(); final jsonResponse = jsonDecode(jsonString); }

read json file flutter

Similar codes for "use json file in flutter"


Latest 'Javascript' questions

Added before "use json file in flutter"