Entrypoint<I> class
A wrapper that creates two way communication possible.
The entry function must be a top-level function or a static method that can be called with a single argument, that is, a compile-time constant function value which accepts at least one positional parameter and has at most one required positional parameter. The function may accept any number of optional parameters, as long as it can be called with just a single argument. The function must not be the value of a function expression or an instance method tear-off.
I
: Input Type
- Implementers
Constructors
-
Entrypoint(WorkerEntrypoint<
I> entry, {PayloadCallback? onInit, Object? initData}) - A wrapper that creates two way communication possible.
Properties
-
entry
→ WorkerEntrypoint<
I> -
The entry function must be a top-level function or a static method
that can be called with a single argument, that is, a compile-time
constant function value which accepts at least one positional
parameter and has at most one required positional parameter.
The function may accept any number of optional parameters,
as long as it can be called with just a single argument.
The function must not be the value of a function expression or
an instance method tear-off.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initData → Object?
-
final
- onInit → PayloadCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
SendPort sendport) → Future< void> -
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