onResult property

dynamic Function(List<YOLOResult>)? onResult
final

Callback invoked when new detection results are available.

This callback provides structured, type-safe detection results as YOLOResult objects. It's the recommended callback for basic object detection applications.

Usage: Basic detection, UI updates, simple statistics Performance: Lightweight (~1-2KB per frame) Data: Bounding boxes, class names, confidence scores

Note: If onStreamingData is provided, this callback will NOT be called to avoid data duplication.

Implementation

final Function(List<YOLOResult>)? onResult;