WebFThread class abstract

Implementers

Constructors

WebFThread()

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

identity() double
The unique ID for the current thread. identity < 0 represent running in Flutter UI Thread. identity >= 0 represent running in dedicated thread. identity with integer part are the same represent they are running in the same thread, for example, 1.1 and 1.2 will the grouped into one thread.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syncBufferSize() int
In dedicated thread mode, WebF creates a shared buffer to record the UI operations that are generated from the JS thread. This approach allows the UI and JavaScript threads to run concurrently as much as possible in most use cases. Once the recorded commands reach the maximum buffer size, commands will be packaged by the JS thread and sent to the UI thread to be executed and apply visual UI changes. Setting this value to 0 in dedicated thread mode can achieve 100% concurrency but may reduce page speed because the generated UI commands will be executed on the UI thread immediately while the JS thread is still running. However, this concurrency sometimes leads to inconsistent UI rendering results, so it's advisable to adjust this value based on specific use cases.
toString() String
A string representation of this object.
inherited

Operators

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