run method
dynamic
run()
Implementation
run() async {
_isolate_instance = await Isolate.spawn(
_isolate_function, response.sendPort,
onExit: response.sendPort);
final sendPort = await response.first as SendPort;
sendPort.send([
this.func,
receivePort.sendPort,
this.params!.iterator,
]);
try {
final result = await receivePort.first;
var resultString = result.toString();
if (resultString.startsWith('@@LaksaError@@')) {
throw resultString.substring(14);
}
kill();
return result;
} catch (e) {
rethrow;
}
}