KntIsolate class
- Annotations
-
- @immutable
Constructors
-
KntIsolate({required FrontendInit frontendInit, required BackendInit backendInit, required Function makeInstance, String serviceName = '', List<
String> interactingEvents = const []}) -
const
Properties
- backendInit → BackendInit
-
Top-level function preparing environment for Backend.
final
- frontendInit → FrontendInit
-
Top-level function preparing environment for Frontend.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interactingEvents
→ List<
String> -
Register list events for Backend sends back to Frontend. These events
will be registered in Frontend.initActions and you need to use
class extension
to implement their event handlers. For example:final - makeInstance → Function
-
Top-level function to make an instance of this annotated class in another worker isolate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceName → String
-
Custom name for Isolate Service if needed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited