Iso class

The isolate runner class

Constructors

Iso(void runFunction(IsoRunner), {IsoOnData? onDataOut, IsoOnData? onError})
If onDataOut is not provided the data coming from the isolate will print to the screen by default

Properties

canReceive bool
The state of the isolate
no setter
dataOut Stream
A stream with the data coming out from the isolate
no setter
hashCode int
The hash code for this object.
no setterinherited
onCanReceive Future
Working state callback
no setter
onDataOut IsoOnData?
The handler for the data coming from the isolate
getter/setter pair
onError IsoOnData?
The handler for the errors coming from the isolate
getter/setter pair
runFunction → void Function(IsoRunner)
The function to run in the isolate
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Cleanup
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run([List args = const <dynamic>[]]) Future<void>
Run the isolate
send(dynamic data) → void
Send data to the isolate
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited