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']);
}

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Future&lt;dynamic&gt;' type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'FutureOr&lt;List&lt;dynamic&gt;&gt; flutter: type '_InternalLinkedHashMap&lt;dynamic, dynamic&gt;' is not a subtype of type 'Map&lt;String, dynamic&gt;?' type '_InternalLinkedHashMap&lt;Object?, Object?&gt;' is not a subtype of type 'String' Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' type '_InternalLinkedHashMap&lt;dynamic, dynamic&gt;' is not a subtype of type 'Map&lt;String, dynamic&gt;' _TypeError (type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Iterable&lt;dynamic&gt;') Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Map&lt;String, String&gt;?' (type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'User') type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'String' _TypeError (type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;') type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Iterable&lt;dynamic&gt;' type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'FutureOr&lt;List&lt;dynamic&gt;&gt;' type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'CategoryModel' Exception has occurred. _TypeError (type '_InternalLinkedHashMap&lt;dynamic, dynamic&gt;' is not a subtype of type 'Map&lt;String, dynamic&gt;') _InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' in type cast type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Response' _CastError (type '_InternalLinkedHashMap&lt;String, String&gt;' is not a subtype of type 'int' in type cast) Unhandled Exception: type 'String' is not a subtype of type 'Iterable&lt;dynamic&gt;' type '_InternalLinkedHashMap&lt;dynamic, dynamic&gt;' is not a subtype of type 'bo [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'FutureOr&lt;Response&gt;' type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' in type cast Unhandled Exception: type 'List&lt;Map&lt;String, String&gt;&gt;' is not a subtype of type 'String' in type cast type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'String' type '_internallinkedhashmap string dynamic ' is not a subtype of type 'iterable dynamic ' flutter [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Iterable&lt;dynamic&gt;' [ERROR:flutter/lib/ui/ui_dart_state.cc(171)] Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' shelf Asynchronous error type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'int' in type cast type '(dynamic) =&gt; Products' is not a subtype of type '(String, dynamic) =&gt; MapEntry&lt;dynamic, dynamic&gt;' of 'transform' Exception has occurred. _TypeError (type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'String') Unhandled Exception: type '_InternalLinkedHashMap&lt;dynamic, dynamic&gt;' is not a subtype of type 'RxMap&lt;dynamic, dynamic&gt;' type '_internallinkedhashmap string dynamic ' is not a subtype of type 'string' flutter DioError [DioErrorType.DEFAULT]: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt; fix nhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' in flutter Dart Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type '() =&gt; void', stack trace _TypeError (type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Iterable&lt;dynamic&gt;') flutter E/flutter ( 7214): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' type '_InternalLinkedHashMap&lt;dynamic, dynamic&gt;' is not a subtype of type 'Map&lt;String, String&gt;' type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List&lt;dynamic&gt;' in type cast
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source