lamnhan066/isolate_manager

How do I pass a List<List<int>> as a parameter?

Closed this issue · 1 comments

I'm on the web.

Since I couldn't directly pass the image, I created a Unit8List and then used List.from to create a List<List< int >>.

After passing the List<List< int >> as a parameter, I'm trying to convert it back to an image, but I'm getting an error because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Here is my code snippet.

//main.dart
 var dataList = <List<int>>[];
//...
dataList.add(List.from(unit8ListData));

await isolateComplexFunction.sendMessage(dataList);
await isolateFunctionName(dataList);
...

and

//functions.dart
@isolateManagerWorker
Object functionName(List<List<int>> dataList) async {
//....
}


@isolateManagerWorker
Future<bool> complexFunction(List<List<int>> dataList) async {
//...
}

I have another problems about dart run isolate_manager:generate
I will reopen issue