Skip to content

Unable to send class Objects in sendPort.send when using FlutterIsolate.spawn #137

@git-elliot

Description

@git-elliot

but can send the same when using Isolate.spawn from dart library.

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument: is a regular instance: Instance of 'ActiveHost'
#0      _SendPort._sendInternal (dart:isolate-patch/isolate_patch.dart:249:43)
#1      _SendPort.send (dart:isolate-patch/isolate_patch.dart:230:5)
#2      HostScannerFlutter._startSearchingDevices.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:network_tools_flutter/src/host_scanner_flutter.dart:94:24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions