onModelLoad property
Called after a model is successfully loaded (initial load) or switched in place (native setModel succeeded).
Carries the loaded modelPath/task so the host can record exactly which model is running rather than reading
its (possibly already-changed) optimistic selection.
Implementation
final void Function(String modelPath, YOLOTask? task)? onModelLoad;