Horje
type '_InternalLinkedHashMap' is not a subtype of type 'Map' Code Example
[Solved] - type '_InternalLinkedHashMap' is not a subtype of type 'Map' Code Example
Try following codes
type '_InternalLinkedHashMap' is not a subtype of type 'Map'
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']);
}
Date: 2022-05-21 05:02:10
Category: dart
More for You