Answers for "convert future<list to list dart"

1

convert future<list> list in flutter

void convertFutureListToList() async {
  Future<List> _futureOfList = _getList();
  List list = await _futureOfList ;
  print(list); 
}
Posted by: Guest on November-07-2021
1

convert future list to list dart

Future<List>  get FutureList {
	// dutration
    return [];
}
main()async {
	var list = await FutureList;
}
Posted by: Guest on August-10-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language