Worklet class
Experimental: This is an experimental technologyCheck the
Browser compatibility table carefully before using this in
production.
The interface is a lightweight version of Web Workers
and
gives developers access to low-level parts of the rendering
pipeline.
With Worklets, you can run JavaScript and WebAssembly code to do
graphics rendering or audio processing where high performance is
required.
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- Worklet()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addModule(
String moduleURL, [WorkletOptions? options]) → Future< void> -
Available on Worklet, provided by the PropsWorklet extension
-
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