holdModelBytes function

void holdModelBytes(
  1. TaskOptions options,
  2. Uint8List bytes
)

Keeps bytes as options' model, for a runtime that reopens its task after the model file may be gone (see GpuFrameBudget in mediapipe_vision).

Implementation

void holdModelBytes(TaskOptions options, Uint8List bytes) {
  _heldBytes[options] = bytes;
}