[Solved] The following _TypeError was thrown during a platform message response callback, type ‘Null’ is not a subtype of type ‘List‘ in type cast

2023/08/21 22:44

Error

2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I The following _TypeError was thrown during a platform message response callback:
2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I type ‘Null’ is not a subtype of type ‘List<dynamic>’ in type cast
2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I
2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I When the exception was thrown, this was the stack:
2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I #0 BackgroundIsolateBinaryMessenger.ensureInitialized.<anonymous closure> (package:flutter/src/services/_background_isolate_binary_messenger_io.dart:51:46)
2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I (elided 6 frames from dart:async)
2023-08-19 00:18:53.981 25657-26311 flutter com.example.app I

Solution

I am working on it and will udpate this post when it get fixed.

Leave a Reply

Back to top