FramePayload class

A container for a pointer to a native buffer that can be sent across isolates.

Sending a buffer across isolates would mean that data is copied, which is not ideal for buffers containing an entire JPG image, from multiple isolates, multiple frames per second. Since we cannot yet send FFI pointers across isolates, we have to send its raw address.

Inheritance

Constructors

FramePayload({required CameraDetails details, Uint8List? image})
A const constructor.

Properties

details → CameraDetails
The details of the camera this frame came from.
final
hashCode int
The hash code for this object.
no setterinherited
image Uint8List?
The image to send.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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