InnerTaskOptions<T extends Struct> mixin

Parent class for building block options classes which are later grouped together to comprise all relevant options for a specific MediaPipe task.

The native implementation suggests two methods each extending class should implement: assignToStruct and freeStructFields. Both methods are passed a struct created and managed elsewhere, and these methods either copy local values into native memory (assignToStruct) or deallocate any native memory that a naive calloc.free() from the parent options class would miss.

Superclass constraints
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

assignToStruct(T struct) → void
Assigns all values to an existing struct. This method should be implemented by all InnerTaskOptions types to hydrate a struct, but not for the creation of that struct. Allocation and management of the actual structs are handled by TaskOptions.copyToNative on the wrapping options object.
freeStructFields(T struct) → void
Deallocates any memory on the struct that would be missed simply by calling calloc.free(struct), which the parent who called this method will do after this method completes.
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