Answers for "type '_InternalLinkedHashMap<DateTime, int>' is not a subtype of type 'Map<DateTime, double>'"

0

type '_InternalLinkedHashMap<DateTime, int>' is not a subtype of type 'Map<DateTime, double>'

Future<List<Map<String, dynamic>>> fetch() async {
  http.Response response = await http.get('http://10.0.2.2:8000/api/membres');
  if (response.statusCode != 200) return null;
  return List<Map<String, dynamic>>.from(json.decode(response.body)['membre']);
}
Posted by: Guest on September-13-2020

Code answers related to "type '_InternalLinkedHashMap<DateTime, int>' is not a subtype of type 'Map<DateTime, double>'"

Code answers related to "Dart"

Browse Popular Code Answers by Language